Results 1 to 20 of 22

Thread: Some very weird compilation warnings

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Question Re: Some very weird compilation warnings

    jpn and other kind people, now I am trying to debug an QEvent::ChangeLanguage, I've set a breakpoint on following code:
    Qt Code:
    1. void COperationWIndow::changeEvent(QEvent* e)
    2. {
    3. qDebug() << "Change event .."; // debug - BREAKPOINT HAS BEEN SET IN THIS LINE
    4. if(e->type()==QEvent::LanguageChange)
    5. {
    6. // language has changed
    7. qDebug() << "Language has changed";
    8. }
    9. }
    To copy to clipboard, switch view to plain text mode 
    and after compile I get in Eclipse console:
    mingw32-make
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace/eROSystem'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CLanguageSelectorWidget.o CLanguageSelectorWidget.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CFlagButton.o CFlagButton.cpp
    C:\DOCUME~1\markofr\LOCALS~1\Temp/ccymbaaa.s: Assembler messages:
    C:\DOCUME~1\markofr\LOCALS~1\Temp/ccymbaaa.s:3188: Fatal error: Case value 262145 unexpected at line 2251 of file "../../src/gas/write.c"

    mingw32-make[1]: *** [debug/CFlagButton.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/eROSystem'
    mingw32-make: *** [debug] Error 2
    Some two days ago my comp crashed (Blue Screen of Death). I became suspicious about Qt corrupted files. Should I try to recompile whole Qt?
    Last edited by jacek; 22nd January 2008 at 21:09. Reason: changed [code] to [quote]
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    Well, this is getting weirder and weirder. I've restarted the comp and now I am trying to compile THE IDENTICAL CODE. I get following errors:
    mingw32-make
    mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace/eROSystem'
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CLanguageSelectorWidget.o CLanguageSelectorWidget.cpp
    g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include\QtSql" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CFlagButton.o CFlagButton.cpp
    In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h:44,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ios:51,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:45,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iterator:71,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/tools/qlist.h:45,
    from ../../../../Qt/4.3.3/include/QtCore/qlist.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/kernel/qobject.h:45,
    from ../../../../Qt/4.3.3/include/QtCore/qobject.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/io/qiodevice.h:41,
    from ../../../../Qt/4.3.3/include/QtCore/qiodevice.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/io/qdatastream.h:40,
    from ../../../../Qt/4.3.3/include/QtCore/qdatastream.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/tools/qstringlist.h:41,
    from ../../../../Qt/4.3.3/include/QtCore/qstringlist.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/painting/qcolor.h:42,
    from ../../../../Qt/4.3.3/include/QtGui/qcolor.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/image/qpixmap.h:41,
    from ../../../../Qt/4.3.3/include/QtGui/qpixmap.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/image/qicon.h:42,
    from ../../../../Qt/4.3.3/include/QtGui/qicon.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/widgets/qabstractbutton.h:40,
    from ../../../../Qt/4.3.3/include/QtGui/qabstractbutton.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/widgets/qpushbutton.h:40,
    from ../../../../Qt/4.3.3/include/QtGui/qpushbutton.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/QPushButton:1,
    from CFlagButton.h:14,
    from CFlagButton.cpp:1:
    C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.h:4297: error: `const$char' has not been declared
    In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.h:4487,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h:44,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ios:51,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:45,
    from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iterator:71,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/tools/qlist.h:45,
    from ../../../../Qt/4.3.3/include/QtCore/qlist.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/kernel/qobject.h:45,
    from ../../../../Qt/4.3.3/include/QtCore/qobject.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/io/qiodevice.h:41,
    from ../../../../Qt/4.3.3/include/QtCore/qiodevice.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/io/qdatastream.h:40,
    from ../../../../Qt/4.3.3/include/QtCore/qdatastream.h:1,
    from ../../../../Qt/4.3.3/include/QtCore/../../src/corelib/tools/qstringlist.h:41,
    from ../../../../Qt/4.3.3/include/QtCore/qstringlist.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/painting/qcolor.h:42,
    from ../../../../Qt/4.3.3/include/QtGui/qcolor.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/image/qpixmap.h:41,
    from ../../../../Qt/4.3.3/include/QtGui/qpixmap.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/image/qicon.h:42,
    from ../../../../Qt/4.3.3/include/QtGui/qicon.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/widgets/qabstractbutton.h:40,
    from ../../../../Qt/4.3.3/include/QtGui/qabstractbutton.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/../../src/gui/widgets/qpushbutton.h:40,
    from ../../../../Qt/4.3.3/include/QtGui/qpushbutton.h:1,
    from ../../../../Qt/4.3.3/include/QtGui/QPushButton:1,
    from CFlagButton.h:14,
    from CFlagButton.cpp:1:
    C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:44: error: prototype for `std::messages<_CharT>::messages(int*, const char*, size_t)' does not match any in class `std::messages<_CharT>'
    C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.h:4297: error: candidates are: std::messages<_CharT>::messages(int*, int*, size_t)
    C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:39: error: std::messages<_CharT>::messages(size_t)
    C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/mingw32/bits/messages_members.h:44: error: template definition of non-template `std::messages<_CharT>::messages(int*, const char*, size_t)'
    mingw32-make[1]: *** [debug/CFlagButton.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/eROSystem'
    mingw32-make: *** [debug] Error 2
    I do not know what is going on. WTF??!!!
    Last edited by jacek; 22nd January 2008 at 21:22. Reason: changed [code] to [quote]
    Qt 5.3 Opensource & Creator 3.1.2

  3. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    Well, I've succesfully got rid of this error. My geniality has written this chunk of code into header file:
    Qt Code:
    1. #include <QEvent>
    2. class QEvent; // forward declaration
    To copy to clipboard, switch view to plain text mode 
    Unfortunately, those warnings from post #1 reside. I've added an attachment, which contains extended compile report, asked by jpn.
    Attached Files Attached Files
    Qt 5.3 Opensource & Creator 3.1.2

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some very weird compilation warnings

    Are you using a normal Windows command prompt (Qt command prompt)?
    J-P Nurmi

  5. #5
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    Yep, I tried both, Eclipse IDE console and Qt command prompt, same warnings. But when I removed a picture from .qrc file, these warnings had dissapeared. Is this some kind of bug?
    Qt 5.3 Opensource & Creator 3.1.2

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some very weird compilation warnings

    Ok, I just asked because while searching Google for such warning I got hits related to Cygwin. Could you by any chance attach the image? I could give it a try if I'm getting same warnings.
    J-P Nurmi

  7. #7
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    What do you mean by image? Exe image or picture of some kind? I cannot give you GUI representation becuase once I delete some png file from resource file, the warnings have dissapeared.
    Qt 5.3 Opensource & Creator 3.1.2

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some very weird compilation warnings

    With image I meant the .png file which is causing such warnings. But are you saying that any .png file causes them?
    J-P Nurmi

  9. #9
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    Attached png file causes warnings.
    Attached Images Attached Images
    Qt 5.3 Opensource & Creator 3.1.2

  10. #10
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some very weird compilation warnings

    Hmm, no warnings for me with Qt 4.3.3 and MinGW.
    J-P Nurmi

  11. #11
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Some very weird compilation warnings

    Should I send you all the pics included in qrc?
    Qt 5.3 Opensource & Creator 3.1.2

  12. #12
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some very weird compilation warnings

    I'm not convinced it changes the situation. I'm clueless about the problem, sorry.
    J-P Nurmi

  13. The following user says thank you to jpn for this useful post:

    MarkoSan (23rd January 2008)

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.