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

wrong order of includes & libraries from -I, -L, %LIB%, and %INCLUDE%

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.2.1
    • Build System
    • None
    • Windows 7 64-bit, mingw-w64 GCC-4.8.2
    • 03ae6ad8e9aa73d77ce3caa89d9cebc2179e199a

    Description

      Building Qt-5.2.1 with mingw-w64 toolchains (both 32 and 64 bit) I get error linking Qt5Test library:

      g++ -shared -mthreads -Wl,--out-implib,C:/build/src/qt-everywhere-opensource-src-5.2.1/qtbase/lib/libQt5Testd.a -o ../../lib/Qt5Testd.dll object_script.Qt5Testd.Debug  -LC:/msys64/mingw64/x86_64-w64-mingw32/lib -LC:/msys64/mingw64/lib -LC:/build/src/qt-everywhere-opensource-src-5.2.1/qtbase/lib -lQt5Cored .obj/debug/Qt5Testd_resource_res.o
      ./.obj/debug/qplaintestlogger.o: In function `QPlainTestLogger::outputMessage(char const*)':
      C:\build\src\qt-everywhere-opensource-src-5.2.1\qtbase\src\testlib/qplaintestlogger.cpp:217: undefined reference to `__imp__Z15qWinLogToStderrv'
      collect2.exe: error: ld returned 1 exit status
      Makefile.Debug:116: recipe for target '../../lib/Qt5Testd.dll' failed
      mingw32-make[4]: *** [../../lib/Qt5Testd.dll] Error 1
      mingw32-make[4]: Leaving directory 'C:/build/src/qt-everywhere-opensource-src-5.2.1/qtbase/src/testlib'
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              alexpux Alexey Pavlov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes