• 7068阅读
  • 1回复

【提问】帮忙看看我的qt那里有问题 [复制链接]

上一主题 下一主题
离线fallening
 

只看楼主 倒序阅读 楼主  发表于: 2005-11-23
make之后有这样的提示信息:

$ make
g++-3.4 -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -I/usr/share/qt3/mkspecs/default -I. -I. -I/usr/share/qt3/include -o main.o main.cc
main.cc:1:26: qapplication.h: 没有那个文件或目录
main.cc:2:20: qlabel.h: 没有那个文件或目录
main.cc: In function `int main(int, char**)':
main.cc:6: error: `QApplication' undeclared (first use this function)
main.cc:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
main.cc:6: error: expected `;' before "app"
main.cc:7: error: `QLabel' undeclared (first use this function)
main.cc:7: error: `label' undeclared (first use this function)
main.cc:7: error: `QLabel' has not been declared
main.cc:8: error: `app' undeclared (first use this function)
main.cc:11:2: warning: no newline at end of file
main.cc: At global scope:

我的.qt下边的qtrc内容
  1. [3.3]
  2. libraryPath=/home/fallening/.kde/lib/kde3/plugins/:/usr/lib/kde3/plugins/
  3. [General]
  4. GUIEffects=general^efademenu^eanimatecombo^efadetooltip^e
  5. embedFonts=true
  6. enableXft=true
  7. font=Arial,12,-1,5,50,0,0,0,0,0
  8. style=acqua
  9. useXft=true
  10. [KDE]
  11. contrast=10
  12. kdeAddedLibraryPaths=/home/fallening/.kde/lib/kde3/plugins/^e/usr/lib/kde3/plugins/^e
  13. [KWinPalette]
  14. activeBackground=#000000
  15. activeBlend=#ffffff
  16. activeForeground=#ffffff
  17. activeTitleBtnBg=#000000
  18. frame=#a8a8a8
  19. inactiveBackground=#a8a8a8
  20. inactiveBlend=#a8a8a8
  21. inactiveForeground=#ffffff
  22. inactiveFrame=#a8a8a8
  23. inactiveTitleBtnBg=#a8a8a8
  24. [Palette]
  25. active=#000000^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#000000^e#e7e7e7^e#000000^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e
  26. disabled=#808080^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#8c8c8c^e#e7e7e7^e#808080^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e
  27. inactive=#000000^e#a8a8a8^e#e7e7e7^e#b8b8b8^e#313131^e#8c8c8c^e#000000^e#e7e7e7^e#000000^e#ffffff^e#a8a8a8^e#000000^e#000000^e#ffffff^e#0000c0^e#800080^e


我用的是debian,qt是apt安装上去的。
[ 此贴被XChinux在2005-11-23 22:59重新编辑 ]
离线XChinux

只看该作者 1楼 发表于: 2005-11-23
把你源代码帖出来看看。
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个