Results 1 to 4 of 4

Thread: Additional libs for linker

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Additional libs for linker

    Hello. I create Console application in QTCreator 1.0

    In main.cpp file i insert code for manual create emputy windows form (winApi).

    Compile is ok.
    Linker send error:
    undefined reference to `GetStockObject@4'

    i need add "libgdi32.a" file as additional library for linker.
    what me to do it?

    thanks.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Additional libs for linker

    try to add this line in your pro-file
    LIBS += libgdi32.a
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Mar 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Additional libs for linker

    Thanks. Its work.

    LIBS option no present in QT-help.

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Additional libs for linker

    it presents, you look for it not so carefully
    take a look at this
    Last edited by spirit; 26th March 2009 at 06:21.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Linking against different Libs
    By AlphaWolf in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2009, 15:25
  2. problem with order of libs during linking
    By minimax in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2008, 10:32
  3. Bad relink libs on QT4 Mac OSX (install_name_tool)
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2007, 09:01

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
  •  
Qt is a trademark of The Qt Company.