• 6086阅读
  • 2回复

[提问]Eclipse CDT+QT 编译错误,哪位高手帮忙看下,谢谢 [复制链接]

上一主题 下一主题
离线tiakui6658
 
只看楼主 倒序阅读 楼主  发表于: 2012-12-30
00:28:08 **** Incremental Build of project qt ****make debug make -f Makefile.Debugmake[1]: Entering directory `G:/eclipse/workspace/qt'g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\Qt\4.8.2\include\QtCore" -I"..\..\..\Qt\4.8.2\include\QtGui" -I"..\..\..\Qt\4.8.2\include" -I"..\..\..\Qt\4.8.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.8.2\mkspecs\default" -o debug\main.o main.cppIn file included from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/utility:71:0,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/algorithm:61,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qglobal.h:68,                 from ..\..\..\Qt\4.8.2\include/QtCore/qglobal.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qnamespace.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qnamespace.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qobjectdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwindowdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwidget.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwidget.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/dialogs/qdialog.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qdialog.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/QDialog:1,                 from qt.h:4,                 from main.cpp:1:g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_relops.h:68:15: 错误:expected ‘{’ before ‘_GLIBCXX_VISIBILITY’g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_relops.h:68:34: 错误:expected constructor, destructor, or type conversion before ‘(’ tokenIn file included from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/new:42:0,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_construct.h:61,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_tempbuf.h:62,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_algo.h:64,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/algorithm:63,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qglobal.h:68,                 from ..\..\..\Qt\4.8.2\include/QtCore/qglobal.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qnamespace.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qnamespace.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qobjectdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwindowdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwidget.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwidget.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/dialogs/qdialog.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qdialog.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/QDialog:1,                 from qt.h:4,                 from main.cpp:1:g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/exception:37:37: 错误:expected ‘}’ before end of linemake[1]: Leaving directory `G:/eclipse/workspace/qt'g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/exception:37:37: 错误:expected declaration before end of linemake[1]: *** [debug/main.o] Error 1make: *** [debug] Error 200:28:10 Build Finished (took 1s.349ms)
离线tiakui6658
只看该作者 1楼 发表于: 2012-12-30
格式不好,重发下:
00:28:08 **** Incremental Build of project qt ****make debug make -f Makefile.Debugmake[1]: Entering directory `G:/eclipse/workspace/qt'g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\Qt\4.8.2\include\QtCore" -I"..\..\..\Qt\4.8.2\include\QtGui" -I"..\..\..\Qt\4.8.2\include" -I"..\..\..\Qt\4.8.2\include\ActiveQt" -I"debug" -I"." -I"..\..\..\Qt\4.8.2\mkspecs\default" -o debug\main.o main.cpp
In file included from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/utility:71:0,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/algorithm:61,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qglobal.h:68,                 from ..\..\..\Qt\4.8.2\include/QtCore/qglobal.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qnamespace.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qnamespace.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qobjectdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwindowdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwidget.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwidget.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/dialogs/qdialog.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qdialog.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/QDialog:1,                 from qt.h:4,                 from main.cpp:1:g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_relops.h:68:15: 错误:expected ‘{’ before ‘_GLIBCXX_VISIBILITY’g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_relops.h:68:34: 错误:expected constructor, destructor, or type conversion before ‘(’ token


In file included from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/new:42:0,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_construct.h:61,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_tempbuf.h:62,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/bits/stl_algo.h:64,                 from g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/algorithm:63,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qglobal.h:68,                 from ..\..\..\Qt\4.8.2\include/QtCore/qglobal.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/global/qnamespace.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qnamespace.h:1,                 from ..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/kernel/qobjectdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtCore/qobjectdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwindowdefs.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwindowdefs.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/kernel/qwidget.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qwidget.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/../../src/gui/dialogs/qdialog.h:45,                 from ..\..\..\Qt\4.8.2\include/QtGui/qdialog.h:1,                 from ..\..\..\Qt\4.8.2\include/QtGui/QDialog:1,                 from qt.h:4,                 from main.cpp:1:
g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/exception:37:37: 错误:expected ‘}’ before end of linemake[1]: Leaving directory `G:/eclipse/workspace/qt'g:\mingw\bin\../lib/gcc/mingw32/4.7.2/include/c++/exception:37:37: 错误:expected declaration before end of line


make[1]: *** [debug/main.o] Error 1make: *** [debug] Error 200:28:10 Build Finished (took 1s.349ms)
离线XChinux

只看该作者 2楼 发表于: 2013-01-01
你的语法有错误?上面不是说expected '}' before end of lnemake[1]
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个