Results 1 to 2 of 2

Thread: C2589 and C2059 compiler errors

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default C2589 and C2059 compiler errors

    Hi,

    I'm using Visual Studio 2008 and Qt 4.8.1 on Windows XP.
    I have copyied I project that I'm developing on one Machine to another. When I try to build the project on the new development machine I get C2589 and C2059 errors on this pice of code:

    Qt Code:
    1. QFile qFile;
    2. ...
    3. if (qFile.error() != QFile::NoError) //This gets me the C2589 and C2059 error codes
    4. .... //Show error message
    To copy to clipboard, switch view to plain text mode 

    Think on that this builds on the first development machine. The two development machines use Visual Studio 2008 with Qt 4.8.1 and Windows XP(SP3)

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: C2589 and C2059 compiler errors

    Hi,

    Solved the problem.
    My application depends on a IO card that installs its header files. Into one of the header files there is a definition of "NoError" as QFile does. Commenting the "NoError" definition on the IO header file the problem dissapear.

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Qt Creator Qt SDK, Remote Compiler "Build Failed: Errors in build"
    By strahlex in forum Qt Tools
    Replies: 0
    Last Post: 10th August 2011, 16:59
  2. Qt Creator Parse compiler errors of a non gcc compiler
    By kiozen in forum Qt Tools
    Replies: 4
    Last Post: 4th July 2011, 01:34
  3. compiler errors on Eclipse ??
    By frankieyam1 in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2011, 20:52
  4. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36
  5. Weird compiler errors
    By MarkoSan in forum General Programming
    Replies: 13
    Last Post: 17th June 2006, 12:40

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.