Hi! Thanks for Help!

 

I did this:

 

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 ;

 

# Poco

 

lib poconet : : <name>PocoNetd <variant>debug <search>/3rdparty/Poco/2011.1/20110110/lib/Linux/x86_64 ;

lib poconet : : <name>PocoNet <variant>release <search>/3rdparty/Poco/2011.1/20110110/lib/Linux/x86_64 ;

 

lib pocofoundation : : <name>PocoFoundationd <variant>debug <search>/3rdparty/Poco/2011.1/20110110/lib/Linux/x86_64 ;

lib pocofoundation : : <name>PocoFoundation <variant>release <search>/3rdparty/Poco/2011.1/20110110/lib/Linux/x86_64 ;

 

lib dts_cte_bhv : main.cpp

system

omp

mysqlcppconn

poconet

pocofoundation

: :

<variant>debug

<variant>release

<cxxflags>-fopenmp

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

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

  ;

 

And bjam output this:

 

$ bjam clean; bjam | grep error;

warning: No toolsets are configured.

warning: Configuring default toolset "gcc".

warning: If the default is wrong, your build may not work correctly.

warning: Use the "toolset=xxxxx" option to override our guess.

warning: For more configuration options, please consult

warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html

error: No best alternative for ./poconet

    next alternative: required properties: <threading>multi <variant>debug

        not matched

    next alternative: required properties: <threading>multi <variant>release

        not matched

error: No best alternative for ./pocofoundation

    next alternative: required properties: <threading>multi <variant>debug

        not matched

    next alternative: required properties: <threading>multi <variant>release

        not matched

...found 1 target...

...updating 1 target...

common.Clean clean

...updated 1 target...

error: No best alternative for ./poconet

error: No best alternative for ./pocofoundation

ubuntu@ip-10-248-7-177:/Projects/project.aysso/Run

 

 

Any Idea! Thanks a lot

 

De: Phillip Seaver [mailto:phil@apago.com]
Enviada em: terça-feira, 17 de abril de 2012 10:08
Para: re.tf@acm.org; Boost.Build developer's and user's list
Assunto: Re: [Boost-build] Define link libs (Debug or Release)

 

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