标题:请问如何Build Debug库
作者:baker0611
日期:2006-03-17 15:02
内容:
同题,
还是个新手,请多指教
#1 [baker0611 03-17 11:59]
windows下 qt4.1.1
还有我在dev-cpp里编译时
#include
#include
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
undefined reference to `_imp___ZN12QApplicationC1ERiPPc'
undefined reference to `_imp___ZN11QPushButtonC1ERK7QStringP7QWidget'
undefined reference to `_imp___ZN12QApplication4execEv'
类似的一串错误,最后是
C:\DOCUME~1\baker\LOCALS~1\Temp\ccILaaaa.o(.text$_ZN7QWidget6resizeEii+0x37) ld returned 1 exit status
能告诉我是哪里出的问题么?
#2 [XChinux 03-17 15:49]
不要用DevCpp进行编译。
用Qt Command Prompt
#3 [XChinux 03-17 16:46]
什么系统?哪个Qt版本?