April 21, 2011

winspear winspear
Lab Rat
13 posts

Compile errors in qcontiguouscache.h & qglbuffer.h on Windows using VC 2010: BUG ???

 

I am upgrading from QT 4.5.1 (VC 2005) to QT 4.7.2 (VC 2010) and I am having trouble compiling my application. Here are the errors that I get in qcontiguouscache.h and qglbuffer.h
Any help would be greatly appreciated. Thanks

  1. 1>------ Build started: Project: qtPhantomTest, Configuration: Debug Win32 ------
  2. 1>Build started 4/21/2011 12:18:27 PM.
  3. 1>InitializeBuildStatus:
  4. 1>  Touching "Debug\qtPhantomTest.unsuccessfulbuild".
  5. 1>CustomBuild:
  6. 1>  All outputs are up-to-date.
  7. 1>ClCompile:
  8. 1>  generatexml.cpp
  9. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
  10. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
  11. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
  12. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
  13. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
  14. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  15. 1>  main.cpp
  16. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
  17. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
  18. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
  19. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
  20. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
  21. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  22. 1>  qtphantomtest.cpp
  23. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
  24. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
  25. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
  26. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
  27. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
  28. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  29. 1>qtphantomtest.cpp(2385): warning C4805: '==' : unsafe mix of type 'BOOLEAN' and type 'bool' in operation
  30. 1>  moc_qtphantomtest.cpp
  31. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
  32. 1>c:\qt\4.7.2\include\qtcore\../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
  33. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
  34. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
  35. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
  36. 1>c:\qt\4.7.2\include\qtopengl\../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
  37. 1>  qrc_qtphantomtest.cpp
  38. 1>  Generating Code...
  39. 1>
  40. 1>Build FAILED.

1 reply

October 18, 2011

winspear winspear
Lab Rat
13 posts

Any updates on this. Because of this I am stuck with QT 4.5.1 and Visual Studio 2005 :(

 
  ‹‹ Webkit: interact with flash      Reliable MediaObject::totalTime() queries ››

You must log in to post a reply. Not a member yet? Register here!