[Qt-interest] application.pro : linking extra libraries

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Thu Mar 12 18:11:55 CET 2009


Juan D Guzman wrote on Wednesday, March 11, 2009 3:09 PM:

> ...
> LIBS += some/path/to/a/lib.lib
> 
> if you are in windows or
> 
> LIBS += -Lpath/to/lib -llibname
> 
> in linux.

I am not sure, but I seem to remember to have read somewhere in the Qt docs that the form

  LIBS += -L/path/to/lib -llibname

works for both Unix and Windows (on Windows just omit the extension .lib, which will be added by qmake).

Or maybe it was just the -L thing which works on both platforms...

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list