Results 1 to 4 of 4

Thread: Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1

  1. #1
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1

    Hello,

    i have problems compiling Qt 4.4.1 on a WinXP 32bit machine. I tried to compile it with the latest MS Visual C++ 2008 Express SP1.

    it gives the following error... here is a part of the build log:

    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C21
    43: syntax error : missing ')' before 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(87) : s
    ee reference to class template instantiation 'std::tr1::_Pmd_caller<_Ret,_Arg0>'
    being compiled
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C21
    43: syntax error : missing ';' before 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C22
    38: unexpected token(s) preceding ';'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C29
    88: unrecognizable template declaration/definition
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C20
    59: syntax error : 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(62) : error C20
    59: syntax error : ')'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(70) : error C23
    34: unexpected token(s) preceding '{'; skipping apparent function body
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C21
    43: syntax error : missing ')' before 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C21
    43: syntax error : missing ';' before 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C22
    38: unexpected token(s) preceding ';'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C29
    88: unrecognizable template declaration/definition
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C20
    59: syntax error : 'constant'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(76) : error C20
    59: syntax error : ')'
    C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\xrefwrap(84) : error C23
    34: unexpected token(s) preceding '{'; skipping apparent function body
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    \nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    C:\Qt\4.4.1>
    I saw this problem also on the german Qt Forum, there someone suggested to disable building the Qt-Webkit module. Here's the thread.. http://www.qtforum.de/forum/viewtopi...695d464a42c565

    Does anyone have similar problems or a better solution?
    ..:: Still Standing Strong ::..

  2. #2
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1

    To resolve, remove the line “#include <xmath.h>” from C:\qt\4.4.0\src\3rdparty\webkit\JavaScriptCore\wtf \MathExtras.h

    The header file xmath.h does a #define _F0 1, and the file xrefwrap uses the name _F0 as a parameter in a templates.

    This is an issue that Microsoft needs to fix.

  3. The following user says thank you to bitChanger for this useful post:

    BrainB0ne (19th August 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1

    Quote Originally Posted by bitChanger View Post
    To resolve, remove the line “#include <xmath.h>” from C:\qt\4.4.0\src\3rdparty\webkit\JavaScriptCore\wtf \MathExtras.h

    The header file xmath.h does a #define _F0 1, and the file xrefwrap uses the name _F0 as a parameter in a templates.

    This is an issue that Microsoft needs to fix.
    Thx, it seems to do the trick

    It's building again....
    ..:: Still Standing Strong ::..

  5. #4
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt 4.4.1 Compile Error with MS Visual C++ 2008 Express SP1

    Microsoft are unlikeley to fix this - see https://connect.microsoft.com/Visual...&wa=wsignin1.0 (if you can log in).

    Its an issue than might need directing towards the WebKit developers, or I can see this change beeing needed for every Qt release until VC10 finally breaks it.

    Pete

Similar Threads

  1. Qt 4.4.1 deployement with Visual Studio Express 2008
    By abrou in forum Installation and Deployment
    Replies: 8
    Last Post: 28th February 2009, 02:13
  2. qtgui4.dll error in visual c++ 2005
    By Comptrol in forum Installation and Deployment
    Replies: 33
    Last Post: 19th June 2008, 07:18
  3. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  4. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 15:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.