Subject: [Boost-build] error: No best alternative for ./std_libs
From: Avi Bahra (avibahra_at_[hidden])
Date: 2010-04-26 06:11:06
I am trying to implement conditional includes
of sources/lib's depending on the tool set i.e
Take the following jamfile snippet
# common libs
lib pthread ;
# On HPUX we need to add standard libs.
lib std_v2 ;
lib stream ;
lib Csup ;
lib unwind ;
lib m ;
alias std_libs : pthread : <toolset>gcc ;
alias std_libs : pthread : <toolset>vacpp ;
alias std_libs : pthread std_v2 stream Csup unwind m : <toolset>acc ;
python-extension ecf_ext : [ glob src/*.cpp ]
I am using alias std_libs to conditionally add additional libs on HPUX.
My site-config.jam on AIX look like:
: requirements <include>$(BOOST_ROOT)
: requirements <threading>multi
using vacpp ;
using testing ;
Originally when I tested this on Linux, it worked a charm. However on
AIX and HPUX, I get messages like:
error: No best alternative for ./std_libs
next alternative: required properties: <threading>multi <toolset>gcc
next alternative: required properties: <threading>multi <toolset>vacpp
next alternative: required properties: <threading>multi <toolset>acc
I don't understand why it cant make the correct choice, as it has all
the information, i.e for toolset and threading ?
Is there any better way of achieving conditional source/libs
dependent on toolset, apart from specifying on the command line ?
Any help on this matter appreciated.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk