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>------ Build started: Project: qtPhantomTest, Configuration: Debug Win32 ------
    1>Build started 4/21/2011 12:18:27 PM.
    1>InitializeBuildStatus:
    1> Touching "Debug\qtPhantomTest.unsuccessfulbuild".
    1>CustomBuild:
    1> All outputs are up-to-date.
    1>ClCompile:
    1> generatexml.cpp
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    1> main.cpp
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    1> qtphantomtest.cpp
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    1>qtphantomtest.cpp(2385): warning C4805: '==' : unsafe mix of type 'BOOLEAN' and type 'bool' in operation
    1> moc_qtphantomtest.cpp
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(116): error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2059: syntax error : 'new'
    1>c:\qt\4.7.2\include\qtopengl../../src/opengl/qglbuffer.h(117): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    1> qrc_qtphantomtest.cpp
    1> Generating Code...
    1>
    1>Build FAILED.@



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.