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

Compile error (undefined reference)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0, 4.7.1
    • 4.6.3
    • None
    • None
    • e311bd0b23cf8696f284b8da3dcc5a591c7b689e

    Description

      Compiling and installing Qt libraries went ok. But when I try to compile a program I get the following linker error:

      g++ -static -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-ps
      eudo-reloc -Wl,-s -Wl,-subsystem,windows -o release\edfbrowser.exe object_script
      .edfbrowser.Release -L"c:\Qt\4.6.3\lib" -lmingw32 -lqtmain .\objects\edfbrowser
      _res.o -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg3
      2 -lQtCore -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp.text+0x34de): unde
      fined reference to `imp__Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp.text+0x3a83): unde
      fined reference to `imp__Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qapplication.o):qapplication.cpp.text+0x401e): unde
      fined reference to `imp__Z21qt_call_post_routinesv'
      c:\Qt\4.6.3\lib\libQtGui.a(qwhatsthis.o):qwhatsthis.cpp.text+0xfc): undefined
      reference to `imp__Z21qDeleteInEventHandlerP7QObject'
      collect2: ld gaf exit-status 1 terug
      mingw32-make[1]: *** [release\edfbrowser.exe] Error 1
      mingw32-make[1]: Leaving directory `C:/Documents and Settings/Ben-Gurion/My Docu
      ments/c/edfbrowser_123_source'
      mingw32-make: *** [release] Error 2

      Attachments

        Issue Links

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

          Activity

            People

              vfm Thierry Bastian (closed Nokia identity) (Inactive)
              theo Theo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes