• 4863阅读
  • 1回复

[讨论]Eclipse+Qt windows [复制链接]

上一主题 下一主题
离线wangping84
 
只看楼主 倒序阅读 楼主  发表于: 2011-09-15
biuld后,有如下错误


make debug
make -f Makefile.Debug
make[1]: 进入目录“C:/Documents and Settings/Administrator/workspace1/QTTest”
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.4.1\include\QtCore" -I"..\..\..\..\Qt\4.4.1\include\QtCore" -I"..\..\..\..\Qt\4.4.1\include\QtGui" -I"..\..\..\..\Qt\4.4.1\include\QtGui" -I"..\..\..\..\Qt\4.4.1\include" -I"c:\Qt\4.4.1\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.4.1\mkspecs\win32-g++" -o debug\main.o main.cpp
In file included from ..\..\..\..\Qt\4.4.1\include/QtCore/qglobal.h:1:0,
                 from ..\..\..\..\Qt\4.4.1\include/QtCore/../../src/corelib/global/qnamespace.h:47,
make[1]: 离开目录“C:/Documents and Settings/Administrator/workspace1/QTTest”
                 from ..\..\..\..\Qt\4.4.1\include/QtCore/qnamespace.h:1,
                 from ..\..\..\..\Qt\4.4.1\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:47,
                 from ..\..\..\..\Qt\4.4.1\include/QtCore/qobjectdefs.h:1,
                 from ..\..\..\..\Qt\4.4.1\include/QtGui/../../src/gui/kernel/qwindowdefs.h:47,
                 from ..\..\..\..\Qt\4.4.1\include/QtGui/qwindowdefs.h:1,
                 from ..\..\..\..\Qt\4.4.1\include/QtGui/../../src/gui/kernel/qwidget.h:47,
                 from ..\..\..\..\Qt\4.4.1\include/QtGui/qwidget.h:1,
                 from ..\..\..\..\Qt\4.4.1\include/QtGui/QWidget:1,
                 from qttest.h:4,
                 from main.cpp:1:
..\..\..\..\Qt\4.4.1\include/QtCore/../../src/corelib/global/qglobal.h:47:20: fatal error: stddef.h: No such file or directory
compilation terminated.
make[1]: *** [debug/main.o] 错误 1
make: *** [debug] 错误 2



eclipse连QApplication都不识别,提示:  Type 'QApplication' could not be resolved



如何解决???????????谢!!!
离线jdwx

只看该作者 1楼 发表于: 2011-09-15
回 楼主(wangping84) 的帖子
Eclipse+Qt windows :在windows这里使用gcc简直就是折磨,编译慢如虫。
还是用QtCreator+vs2008编译最好最快(编译时间估计是gcc的5-10分之一)。
把工程目录放到没有空格的目录里试试。
发帖时要说明:操作系统、Qt版本、编译器,这样能更快的得到回复。
快速回复
限100 字节
 
上一个 下一个