PDA

View Full Version : Eclipse integration



GrahamLabdon
24th March 2010, 08:25
Hi everyone
I am new to QT and to ecplipse.
I have downloaded Eclipse and the QT addin.

I now create a simple QT project, configure the version of QT within eclipse and hit build.

I get a lot of errors and I dont know why - any ideas are gratefully accepted

Here are the errors


nmake debug

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

nmake -f Makefile.Debug

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\Qt\4.6.1\include\QtCore" -I"..\..\..\Qt\4.6.1\include\QtGui" -I"..\..\..\Qt\4.6.1\include" -I"..\..\..\Qt\4.6.1\include\ActiveQt" -I"debug" -I"..\..\..\Qt\4.6.1\mkspecs\default" -Fodebug\ @C:\DOCUME~1\GRAHAM~1.LAB\LOCALS~1\Temp\nma04312.
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Z:'
Command line warning D4002 : ignoring unknown option '-Zw'
Command line warning D4002 : ignoring unknown option '-Zc'
Command line warning D4002 : ignoring unknown option '-Zh'
Command line warning D4002 : ignoring unknown option '-Zr'
Command line warning D4002 : ignoring unknown option '-Z_'
main.cpp
Command line warning D4002 : ignoring unknown option '-Zt'
Command line warning D4002 : ignoring unknown option '-Z-'
Command line warning D4002 : ignoring unknown option '-w34100'
Command line warning D4002 : ignoring unknown option '-w34189'
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2146: syntax error : missing ';' before identifier 'i'
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2501: 'i' : missing storage-class or type specifiers
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2501: 'e' : missing storage-class or type specifiers
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : error C2146: syntax error : missing ';' before identifier 'qGetPtrHelper'
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : error C2433: 'pointer' : 'inline' not permitted on data declarations
..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : fatal error C1903: unable to recover from previous error(s); stopping compilation
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code '0x2'
Stop.