#5 Unable to compile 0.8.1 with GCC v4

closed-fixed
None
7
2007-03-20
2007-03-19
Anonymous
No

Stage 3 - Compiling and Linking...
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include/qt3 -o application.o application.cpp
/usr/include/qt3/qxml.h:224: warning: 'class QXmlReader' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:407: warning: 'class QXmlContentHandler' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:424: warning: 'class QXmlErrorHandler' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:433: warning: 'class QXmlDTDHandler' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:441: warning: 'class QXmlEntityResolver' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:448: warning: 'class QXmlLexicalHandler' has virtual functions but non-virtual destructor
/usr/include/qt3/qxml.h:461: warning: 'class QXmlDeclHandler' has virtual functions but non-virtual destructor
application.cpp: In member function 'void ApplicationWindow::load(const QString&)':
application.cpp:253: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
application.cpp:253: note: candidate 1: operator+(int, int) <built-in>
/usr/include/qt3/qcstring.h:374: note: candidate 2: const QCString operator+(const QCString&, char)
application.cpp:253: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
application.cpp:253: note: candidate 1: operator+(int, int) <built-in>
/usr/include/qt3/qcstring.h:374: note: candidate 2: const QCString operator+(const QCString&, char)
make: *** [application.o] Error 1
Error - There was some error compiling or linking GENPO
Look at the output above for an explanation

Discussion

  • Steve Merrony

    Steve Merrony - 2007-03-19
    • priority: 5 --> 7
    • assigned_to: nobody --> merronys
    • status: open --> open-accepted
     
  • Steve Merrony

    Steve Merrony - 2007-03-19

    Logged In: YES
    user_id=214557
    Originator: NO

    This is a GCC 4 difference.

     
  • Steve Merrony

    Steve Merrony - 2007-03-20
    • status: open-accepted --> closed-fixed
     
  • Steve Merrony

    Steve Merrony - 2007-03-20

    Logged In: YES
    user_id=214557
    Originator: NO

    Fixed by version 0.9

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks