Results 1 to 4 of 4

Thread: qt 4.7.4 linking error, missing --enable-auto-import

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    6
    Thanks
    3
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qt 4.7.4 linking error, missing --enable-auto-import

    I compiled qwt 6.0.1 dynamic library with qt 4.7.4, and added it to my qt project,
    but there is a linking warning saying missing --enable-auto-import option,
    I checked the qmake.conf file in mkspecs/win32-g++, QMAKE_LFLAGS is empty,
    QMAKE_LFLAGS =
    but in qt 4.7.3, QMAKE_LFLAGS = -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
    so I added the -Wl,-enable-auto-import to qt 4.7.4, it worked.
    I am confused.

    env: win7 32bit, qt 4.7.4, qtcreator 2.3.0
    log:

    g++ -mthreads -Wl,-subsystem,windows -o debug\mpbs.exe object_script.mpbs.Debug -L"c:\Qt\4.7.4\lib" -lmingw32 -lqtmaind debug\mpbs_res.o -Ld:/qwt-6.0.1/lib -lqwtd -lQAxContainerd -lole32 -loleaut32 -luser32 -lgdi32 -ladvapi32 -luuid -lQtGuid4 -lQtCored4

    Info: resolving QwtPlot::staticMetaObject by linking to __imp___ZN7QwtPlot16staticMetaObjectE (auto-import)

    c:/qt/qtcreator-2.3.0/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
    This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
    Last edited by lvdong; 12th September 2011 at 02:48.

  2. The following 3 users say thank you to lvdong for this useful post:

    corrado1972 (12th April 2012), gib (10th December 2011), Niels Holst (6th October 2011)

Similar Threads

  1. Odd QtCored4.dll error (not missing!)
    By Wasabi in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2011, 23:07
  2. Replies: 2
    Last Post: 28th February 2011, 23:14
  3. Compiler error when calling QObject::connect. What am I missing?
    By themanwiththequestion in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2010, 14:33
  4. fatal error- missing -'QtUiToolsd.lib
    By razovy in forum Installation and Deployment
    Replies: 2
    Last Post: 20th June 2006, 08:55
  5. import library linking
    By bruce1007 in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2006, 10:27

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.