Results 1 to 3 of 3

Thread: Visual Studio 2012 + Qt5.0.2 Compilation Error

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Visual Studio 2012 + Qt5.0.2 Compilation Error

    I am compiling my program using Visual Studio 2012 Update 2 and Qt 5.0.2 and I am getting:

    1>c:\qt\qt-everywhere-opensource-src-5.0.2\qtbase\include\qtcore\../../src/corelib/tools/qarraydataops.h(401): error C2171: '!' : illegal on operands of type ''unknown-type''
    1>c:\qt\qt-everywhere-opensource-src-5.0.2\qtbase\include\qtcore\../../src/corelib/tools/qarraydataops.h(402): error C2171: '!' : illegal on operands of type ''unknown-type''
    1>c:\qt\qt-everywhere-opensource-src-5.0.2\qtbase\include\qtcore\../../src/corelib/tools/qarraydataops.h(411): error C2171: '!' : illegal on operands of type ''unknown-type''
    It is occuring on the compilation of the moc_*.cpp of a QMainWindow subclass. The application compiled just fine (run error on trying to find Hunspell DLL) just prior to adding a PATH environment variable to the hunspell DLL. Any ideas? When I removed the PATH, the error still continues and I cannot get it to go away. If I remove the code for the class that the error occurs on, it just occurs on another class.
    Every little child knows
    if you cant see dreams
    your eyes are blind

    Moxy Fruvous

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Visual Studio 2012 + Qt5.0.2 Compilation Error

    PATH is a red herring. You have a compilation error brought about by your code (or a faulty install of Qt) ... but since we cannot see that. You first port of call is to do a clean rebuild of the project.

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

    Rayven (26th April 2013)

  4. #3
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2012 + Qt5.0.2 Compilation Error

    Apparently it was a faulty configuration of the project. using away the Solution and Project and rebuilt using the same code. Every thing built fine after that point. Really unsure what I did, but it was fixed.
    Every little child knows
    if you cant see dreams
    your eyes are blind

    Moxy Fruvous

Similar Threads

  1. Qt 5.0.1 + Visual Studio 2012 + OpenGL Error
    By Rayven in forum Qt Programming
    Replies: 2
    Last Post: 24th April 2013, 18:34
  2. Help regarding QT plugins for Visual studio 2012
    By shah_27 in forum Qt Programming
    Replies: 0
    Last Post: 9th January 2013, 09:42
  3. Replies: 1
    Last Post: 3rd January 2013, 17:21
  4. Build qt 5 with Visual Studio 2012
    By Edder in forum Installation and Deployment
    Replies: 4
    Last Post: 28th December 2012, 10:16
  5. Qt 4.8.3 with Visual Studio 2012 does not compile the webkit
    By dennis81 in forum Installation and Deployment
    Replies: 1
    Last Post: 4th December 2012, 02:25

Tags for this Thread

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.