用户名: 密码: 忘记密码? 注册
收藏此问题 发表新评论

关于gtk和glade,请高手指点

在windows上用VMware虚拟机装的Ubuntu,装上QT好像有问题,在QT Creator新建文件输入任何include <QLabel>之类的,都是波浪线,不识别这些QT自带的库
我查过环境变量,应该没问题的啊,在etc的environment文件中环境变量是:PATH="usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/Trolltech/QtEmbedded-4.5.3/bin

以下是编译我的程序产生的错误信息,还请大家帮帮忙,我都整这个问题整了好几天,快抓狂了!
root@ubuntu:/opt/cm_reader_pro/click20110603# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.5.3/mkspecs/qws/linux-x86-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtNetwork -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.5.3/include/QtWebKit -I/usr/local/Trolltech/QtEmbedded-4.5.3/include -I. -I. -o 20110603.o 20110603.cpp
In file included from 20110603.cpp:1:
./20110603.h:1:9: error: macro names must be identifiers
20110603.cpp:3: error: ‘MainWindow’ has not been declared
20110603.cpp:3: error: expected constructor, destructor, or type conversion before ‘(’ token
20110603.cpp:9: error: ‘MainWindow’ has not been declared
20110603.cpp:9: error: ‘QObject’ was not declared in this scope
20110603.cpp:9: error: ‘target’ was not declared in this scope
20110603.cpp:9: error: ‘QEvent’ was not declared in this scope
20110603.cpp:9: error: ‘event’ was not declared in this scope
20110603.cpp:9: error: initializer expression list treated as compound expression
20110603.cpp:10: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [20110603.o] Error 1
昵称: chemmyhuang  时间: 2011-06-07 14:44:00
发表评论
昵称:
内容:
验证: