程序如下,还是直接用kde建的,没有加半句自己的代码
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hello, from Win32!" << endl;
return EXIT_SUCCESS;
}
编译问题如下:
cd '/root/qttest' && CC="i586-mingw32msvc-c" CXX="i586-mingw32msvc-c++" LD="i586-mingw32msvc-ld" "/root/qttest/configure" && cd '/root/qttest' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -j1
正在安装 -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
*** 退出状态:77 ***
google搜索到一个法文站点,隐隐约约说是 有关Mingw的问题,下了4个mingw的rpm包装上,问题依旧
[ 此贴被XChinux在2005-09-28 17:12重新编辑 ]