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
Qt Code:
  1. nmake debug
  2.  
  3. Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
  4. Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
  5.  
  6. nmake -f Makefile.Debug
  7.  
  8. Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
  9. Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
  10.  
  11. 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.
  12. Command line warning D4002 : ignoring unknown option '-Zc'
  13. Command line warning D4002 : ignoring unknown option '-Z:'
  14. Command line warning D4002 : ignoring unknown option '-Zw'
  15. Command line warning D4002 : ignoring unknown option '-Zc'
  16. Command line warning D4002 : ignoring unknown option '-Zh'
  17. Command line warning D4002 : ignoring unknown option '-Zr'
  18. Command line warning D4002 : ignoring unknown option '-Z_'
  19. main.cpp
  20. Command line warning D4002 : ignoring unknown option '-Zt'
  21. Command line warning D4002 : ignoring unknown option '-Z-'
  22. Command line warning D4002 : ignoring unknown option '-w34100'
  23. Command line warning D4002 : ignoring unknown option '-w34189'
  24. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2146: syntax error : missing ';' before identifier 'i'
  25. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
  26. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2501: 'i' : missing storage-class or type specifiers
  27. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
  28. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2249) : error C2501: 'e' : missing storage-class or type specifiers
  29. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2251) : see reference to class template instantiation 'QForeachContainer<T>' being compiled
  30. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : error C2146: syntax error : missing ';' before identifier 'qGetPtrHelper'
  31. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : error C2433: 'pointer' : 'inline' not permitted on data declarations
  32. ..\..\..\Qt\4.6.1\include\QtCore/../../src/corelib/global/qglobal.h(2317) : fatal error C1903: unable to recover from previous error(s); stopping compilation
  33. NMAKE : fatal error U1077: 'cl' : return code '0x2'
  34. Stop.
  35. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code '0x2'
  36. Stop.
To copy to clipboard, switch view to plain text mode