这个就是最简单的hello
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
出现以下问题:
C:\Hello>qmake -project
C:\Hello>qmake
C:\Hello>mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Hello'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -Wl,-subsystem,windows -o "debug\Hello.exe" debug\Hello.o -L"C
:\Qt\4.1.2\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
C:\Dev-Cpp\bin\..\lib\gcc-lib\mingw32\3.3.1\..\..\..\..\mingw32\bin\ld.exe: cann
ot find -lQtGuid4
mingw32-make[1]: *** [debug\Hello.exe] Error 1
mingw32-make[1]: Leaving directory `C:/Hello'
mingw32-make: *** [debug] Error 2[ 此贴被XChinux在2006-05-08 00:16重新编辑 ]