Syntax error in qtcontiguouscache.h and qglbuffer.h in 4.7.4



  • 1>c:\qt\4.7.4\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72) : error C2059: syntax error : 'new'
    1>c:\qt\4.7.4\include\qtcore../../src/corelib/tools/qcontiguouscache.h(72) : error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.4\include\qtopengl../../src/opengl/qglbuffer.h(116) : error C2059: syntax error : 'new'
    1>c:\qt\4.7.4\include\qtopengl../../src/opengl/qglbuffer.h(116) : error C2238: unexpected token(s) preceding ';'
    1>c:\qt\4.7.4\include\qtopengl../../src/opengl/qglbuffer.h(117) : error C2059: syntax error : 'new'
    1>c:\qt\4.7.4\include\qtopengl../../src/opengl/qglbuffer.h(117) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body

    I have been using 4.5.1 with VC 2005 to develop a OpenGL widget in QT and everything ran smoothly and we successfully made releases of the widget.
    Now I am trying to compile the same code on QT 4.7.4 with VC 2008 and it throws me the errors seen above.
    Any help on finding out what function is creating this error will help. I have been trying to figure this out for ages and I am just losing my patience with QT.

    Thanks for the help.

    V


Log in to reply
 

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