简单程序为:
#include <QtCore>
#include<QApplication>
int main(int argc,char **argv)
{
QApplication app(argc,argv);
QString str1 = "test";
QByteArray ba = str1.toLatin1();
const char * c_str2 = ba.data();
printf("str2:%s",c_str2);
return app.exec();
}
可是在使用控制台
编译的时候报找不到系统头文件QtCore的错误,同时发现在release版本的情况下也是找不到系统
头文件。
在debug的情况下就可以找到系统头文件,目前已经在2台电脑上遇到这个情况了。2台电脑的配置情况分别是:win7+qt4.6.3 与xp+qt4.3.2
请问是
安装的问题吗?还是怎么回事?
[ 此帖被boxxer在2010-09-27 21:27重新编辑 ]