Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27558

qnetworkinfo_win.cpp build fail

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.0.0
    • None
    • Windows 7, mingw-w64 + gcc-4.7.2

    Description

      C:\SDK\sources\qt5\qtbase\bin\moc.exe -DUNICODE -DQT_BUILD_SYSTEMINFO_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -I. -I"..\..\include" -I"..\..\include\QtSystemInfo" -I"..\..\include\QtSystemInfo\5.0.0" -I"..\..\include\QtSystemInfo\5.0.0\QtSystemInfo" -I"tmp" -I"C:\SDK\sources\qt5\qtbase\include" -I"C:\SDK\sources\qt5\qtbase\include\QtGui" -I"C:\SDK\sources\qt5\qtbase\include\QtNetwork" -I"C:\SDK\sources\qt5\qtbase\include\QtCore" -I"debug" -I"C:\SDK\sources\qt5\qtbase\mkspecs\win32-g++" -D_GNUC_ -DWIN32 qbatteryinfo.h -o debug\moc_qbatteryinfo.cpp
      qnetworkinfo_win.cpp: In member function 'bool QNetworkInfoPrivate::isDefaultMode(QNetworkInfo::NetworkMode)':
      qnetworkinfo_win.cpp:761:52: error: invalid use of incomplete type 'class QStringList'
      In file included from C:\SDK\sources\qt5\qtbase\include/QtCore/qstring.h:1:0,
      from C:\SDK\sources\qt5\qtbase\include/QtCore/../../src/corelib/kernel/qobject.h:48,
      from C:\SDK\sources\qt5\qtbase\include/QtCore/qobject.h:1,
      from qnetworkinfo.h:46,
      from qnetworkinfo_win_p.h:58,
      from qnetworkinfo_win.cpp:42:
      C:\SDK\sources\qt5\qtbase\include/QtCore/../../src/corelib/tools/qstring.h:76:7: error: forward declaration of 'class QStringList'
      qnetworkinfo_win.cpp:762:55: error: invalid use of incomplete type 'class QStringList'
      In file included from C:\SDK\sources\qt5\qtbase\include/QtCore/qstring.h:1:0,
      from C:\SDK\sources\qt5\qtbase\include/QtCore/../../src/corelib/kernel/qobject.h:48,
      from C:\SDK\sources\qt5\qtbase\include/QtCore/qobject.h:1,
      from qnetworkinfo.h:46,
      from qnetworkinfo_win_p.h:58,
      from qnetworkinfo_win.cpp:42:
      C:\SDK\sources\qt5\qtbase\include/QtCore/../../src/corelib/tools/qstring.h:76:7: error: forward declaration of 'class QStringList'
      qnetworkinfo_win.cpp: At global scope:
      qnetworkinfo_win.cpp:862:19: warning: unused parameter 'mode' [-Wunused-parameter]
      C:\SDK\sources\qt5\qtbase\bin\moc.exe -DUNICODE -DQT_BUILD_SYSTEMINFO_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -I. -I"..\..\include" -I"..\..\include\QtSystemInfo" -I"..\..\include\QtSystemInfo\5.0.0" -I"..\..\include\QtSystemInfo\5.0.0\QtSystemInfo" -I"tmp" -I"C:\SDK\sources\qt5\qtbase\include" -I"C:\SDK\sources\qt5\qtbase\include\QtGui" -I"C:\SDK\sources\qt5\qtbase\include\QtNetwork" -I"C:\SDK\sources\qt5\qtbase\include\QtCore" -I"debug" -I"C:\SDK\sources\qt5\qtbase\mkspecs\win32-g++" -D_GNUC_ -DWIN32 qnetworkinfo.h -o debug\moc_qnetworkinfo.cpp
      C:\SDK\sources\qt5\qtbase\bin\moc.exe -DUNICODE -DQT_BUILD_SYSTEMINFO_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_EXCEPTIONS -I. -I"..\..\include" -I"..\..\include\QtSystemInfo" -I"..\..\include\QtSystemInfo\5.0.0" -I"..\..\include\QtSystemInfo\5.0.0\QtSystemInfo" -I"tmp" -I"C:\SDK\sources\qt5\qtbase\include" -I"C:\SDK\sources\qt5\qtbase\include\QtGui" -I"C:\SDK\sources\qt5\qtbase\include\QtNetwork" -I"C:\SDK\sources\qt5\qtbase\include\QtCore" -I"release" -I"C:\SDK\sources\qt5\qtbase\mkspecs\win32-g++" -D_GNUC_ -DWIN32 qstorageinfo.h -o release\moc_qstorageinfo.cpp
      Makefile.Debug:3513: recipe for target 'debug/qnetworkinfo_win.o' failed
      mingw32-make[4]: *** [debug/qnetworkinfo_win.o] Error 1
      mingw32-make[4]: *** Waiting for unfinished jobs....
      mingw32-make[4]: Leaving directory 'C:/SDK/sources/qt5/qtsystems/src/systeminfo'
      Makefile:37: recipe for target 'debug-all' failed
      mingw32-make[3]: *** [debug-all] Error 2
      mingw32-make[3]: *** Waiting for unfinished jobs....

      Attachments

        Activity

          People

            lpotter Lorn Potter
            alexpux Alexey Pavlov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: