November 23, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

Using lib debug version

 

Hi All,
some of you should know if possible specify into .pro to use a lib if in debug version instead another one tha i usually use in release version?
thanks.

3 replies

November 23, 2010

Volker Volker
Ant Farmer
5428 posts

Yes:

  1. debug:LIBS += -ldebuglib
  2. release:LIBS += -lreleaselib

November 23, 2010

Franzk Franzk
Lab Rat
837 posts

Likewise you could have something like

  1. debug:D=d
  2. release:D=
  3.  
  4. LIBS += -lthelibrary$${D}

which is especially useful when linking to a lot of libraries following the same naming convention.

 Signature 

“Horse sense is the thing a horse has which keeps it from betting on people.”—W.C. Fields

http://www.catb.org/~esr/faqs/smart-questions.html

November 24, 2010

qwertyuiopearendil qwertyuiopea..
Lab Rat
91 posts

Thanks a lot for your quick answer.

 
  ‹‹ How to develop a "QtCreator plugin"      QGLFormat Accumulation Buffer ››

You must log in to post a reply. Not a member yet? Register here!