Results 1 to 3 of 3

Thread: Including libs on windows

  1. #1
    ucomesdag Guest

    Default Including libs on windows

    Hi all,

    Noticed something after upgrading to 4.3.1 on windows, I always used:
    Qt Code:
    1. LIBS += /path/to/your/lib/Libfile.lib
    To copy to clipboard, switch view to plain text mode 
    and it seems broken and gives only linker error's and replacing it by:
    Qt Code:
    1. LIBS += -L/path/to/your/lib -lLibfile
    To copy to clipboard, switch view to plain text mode 
    seems to fix it.

    Is there an explanation why it stopped working did I forget to configure something?

    Thanks!

  2. #2
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Including libs on windows

    why not you set lib path in windows environment.
    what IDE you using?

  3. #3
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Including libs on windows

    Hi,

    I have always been using this type of code:
    Qt Code:
    1. LIBS += -L libPATH -llib1 -llib2...
    To copy to clipboard, switch view to plain text mode 

    What's your OS and IDE?

    Maverick
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

Similar Threads

  1. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 02:00
  2. Qt and windows vista
    By munna in forum General Discussion
    Replies: 8
    Last Post: 11th January 2006, 23:33

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.