• 5389阅读
  • 0回复

第一次编译问题? [复制链接]

上一主题 下一主题
离线zy765
 

只看楼主 倒序阅读 楼主  发表于: 2006-04-25
这个就是最简单的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重新编辑 ]
快速回复
限100 字节
 
上一个 下一个