Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile errors in qcontiguouscache.h & qglbuffer.h on Windows using VC 2010: BUG ???
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    winspear
    wrote on 21 Apr 2011, 16:31 last edited by
    #1

    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.@

    1 Reply Last reply
    0
    • W Offline
      W Offline
      winspear
      wrote on 18 Oct 2011, 19:58 last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved