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

Juan D Guzman lostinthecode at googlemail.com
Wed Mar 11 15:08:49 CET 2009


Miguel Cardenas wrote:
> Hello
>
> One question, if I want to link extra libraries to my Qt application 
> do they have to be available in the PATH (like when executing the 
> program) or should add the path to a variable in the .PRO configuration?
>
> Thanks
>
> -- 
> Miguel Cardenas
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   
you can add the LIBS variable to your pro file

LIBS += some/path/to/a/lib.lib

if you are in windows or

LIBS += -Lpath/to/lib -llibname

in linux.

i might have the syntax a little off but i'm pretty sure that's what you 
are looking for.



More information about the Qt-interest-old mailing list