On 4/17/2012 7:32 AM, Renato Tegon Forti wrote:

lib system        : : <name>boost_system <search>/3rdparty/Boost/1.46.1/lib ;

lib omp           : : <name>gomp <search>/usr/lib/gcc/x86_64-linux-gnu/4.6.3 ;

lib mysqlcppconn  : : <name>mysqlcppconn <search>/usr/lib ;

 

# Debug

lib mylib_DEB   : : <name> mylibd <search>/3rdparty;

 

#Release

lib mylib_REL   : : <name> mylib  <search>/3rdparty;

 

lib dts_cte_bhv : main.cpp

system

omp

mysqlcppconn

# HOW TO PUT LIBS HERE !

: :

<variant>debug

<variant>release

<cxxflags>-fopenmp

<include>/3rdparty/Poco/2011.1/20110110/Net/include/

<include>/3rdparty/Poco/2011.1/20110110/Foundation/include/

  ;

 

I ddi try this:

 

omp

mysqlcppconn

: :

<variant>debug : mylib_DEB  

<variant>release : mylib_REL  

<cxxflags>-fopenmp

 

But don’t work! Any Idea!

 


I usually do "<variant>debug:<source>mylib_DEB"

Alternately, I believe something like this will work:

lib mylib : : <name>mylibd <variant>debug <search>/3rdparty ;
lib mylib : : <name>mylib <variant>release <search>/3rdparty ;

You can then just add "mylib" to the sources of the target.

While I was copying some of your code, I noticed that you have no space before the semicolon in "<search>/3rdparty;"  To the best of my knowledge, that can still cause problems with parsing.

Hope this helps!

Phillip