Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
4.6.3
-
None
Description
I get undefined references when building Qt statically.
- I downloaded Qt 4.6.3 sources and unzipped them in C:\Qt\2010.03-static
- I run configure with these parameters: (from c:\qt\2010.03-static\Qt
configure -static -no-qt3support -no-webkit -no-phonon -no-s60 -no-openssl -opensource -release
The error output is as follows:
c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0 x8e0f): undefined reference to `_imp___Z21qt_call_post_routinesv' c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0 x9443): undefined reference to `_imp___Z21qt_call_post_routinesv' c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qapplication.o):qapplication.cpp:(.text+0 x9a6b): undefined reference to `_imp___Z21qt_call_post_routinesv' c:\Qt\2010.03-static\Qt\lib/libQtGui.a(qwhatsthis.o):qwhatsthis.cpp:(.text+0xfc) : undefined reference to `_imp___Z21qDeleteInEventHandlerP7QObject' collect2: ld returned 1 exit status mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1 mingw32-make[5]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool s/assistant' mingw32-make[4]: *** [release] Error 2 mingw32-make[4]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool s/assistant' mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2 mingw32-make[3]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant/tool s' mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2 mingw32-make[2]: Leaving directory `C:/Qt/2010.03-static/Qt/tools/assistant' mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2 mingw32-make[1]: Leaving directory `C:/Qt/2010.03-static/Qt/tools' mingw32-make: *** [sub-tools-make_default-ordered] Error 2
Attachments
Issue Links
- is replaced by
-
QTBUG-11657 Compile error (undefined reference)
-
- Closed
-
- replaces
-
QTBUG-13728 Static build of Qt-4.6.3 on Windows 7, with MinGW-4.4.0 (open-source build) fails when linking assistant.exe.
-
- Closed
-