Results 1 to 8 of 8

Thread: Windows XP compile error 4.3.1

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Windows XP compile error 4.3.1

    This is when I try to compile the debug libraries.

    I'm getting the following compile error:

    g++ -c -include tmp\obj\debug_shared\qt_pch.h -g -Wall -frtti -fexceptions -mthr
    eads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD
    _CORE_LIB -DQT_MAKEDLL -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -D
    _USE_MATH_DEFINES -DQT_DLL -I"..\..\include" -I"..\..\include\QtCore" -I"tmp" -I
    "global" -I"..\3rdparty\zlib" -I"..\..\include\ActiveQt" -I"tmp\moc\debug_shared
    " -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\moc_qtextcodecplugin
    .o tmp\moc\debug_shared\moc_qtextcodecplugin.cpp
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -shared -Wl,--out-implib,c:\Qt\4.3.1\lib\libQtCored4.a -o "..\.
    .\lib\QtCored4.dll" object_script.QtCored.Debug -L"c:\Qt\4.3.1\lib" -L"c:\Progr
    am Files\SQLXML 4.0\bin\" -L"c:\Qt\4.3.1\lib" -lkernel32 -luser32 -lshell32 -luu
    id -lole32 -ladvapi32 -lws2_32 tmp\obj\debug_shared\QtCored_resource_res.o
    Creating library file: c:\Qt\4.3.1\lib\libQtCored4.a
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 358): In function `Z8readLin
    kRK7QString':
    C:/Qt/4.3.1/src/corelib/io/qfsfileengine_win.cpp:1310: undefined reference to `C
    oCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 377):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoInitialize@4'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 3a5):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 3cc):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `IID_IPersistFile'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 560):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 5a1):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 5c0):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoInitialize@4'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 5f1):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 618):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `IID_IPersistFile'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 8e8):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1310: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 a1f): In function `ZN13QFSFi
    leEngine4linkERK7QString':
    C:/Qt/4.3.1/src/corelib/io/qfsfileengine_win.cpp:1404: undefined reference to `C
    oCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 a3e):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoInitialize@4'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 a6c):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 cc8):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `IID_IPersistFile'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 d70):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 e43):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 e62):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoInitialize@4'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x8 e90):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoCreateInstance@20'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x9 412):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `IID_IPersistFile'
    ./tmp\obj\debug_shared\qfsfileengine_win.o(.text+0x9 6d3):C:/Qt/4.3.1/src/corelib
    /io/qfsfileengine_win.cpp:1404: undefined reference to `CoUninitialize@0'
    ./tmp\obj\debug_shared\quuid.o(.text+0x229b): In function `ZN5QUuid10createUuidE
    v':
    C:/Qt/4.3.1/src/corelib/plugin/quuid.cpp:411: undefined reference to `CoCreateGu
    id@4'
    ./tmp\obj\debug_shared\qeventdispatcher_win.o(.text+ 0x2776): In function `ZN28QE
    ventDispatcherWin32Private16doWsaAsyncSelectEi':
    C:/Qt/4.3.1/src/corelib/kernel/qeventdispatcher_win.cpp:390: undefined reference
    to `WSAAsyncSelect@16'
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1
    mingw32-make[2]: Leaving directory `C:/Qt/4.3.1/src/corelib'
    mingw32-make[1]: *** [debug] Error 2
    mingw32-make[1]: Leaving directory `C:/Qt/4.3.1/src/corelib'
    mingw32-make: *** [debug-C__Qt_4_3_1_src_corelib] Error 2
    C:\Qt\4.3.1\src>
    Any ideas? The code itself look exactly the same compared to the old 4.2 version I had installed.
    Last edited by kroenecker; 19th September 2007 at 21:48. Reason: updated contents

Similar Threads

  1. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 01:00
  2. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29
  3. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  4. Recompiling on Windows with BCC -- help
    By jamadagni in forum General Discussion
    Replies: 3
    Last Post: 30th January 2006, 15:47
  5. Replies: 4
    Last Post: 12th January 2006, 04:16

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.