|
Boost-Build : |
From: Artem Alimarine (artem_at_[hidden])
Date: 2006-08-10 09:09:24
Thank you for the response
> Have you checked what toolset is first in your user-config.jam file? If that isn't gcc or msvc, the above isn't going to work. Also, have you tried:
>
> bjam --v2 msvc hello
>
> directly.
>
Under cygwin GCC is the only defined toolset in my user-config. I have
different user configs for cygwin and msvc.
>
> The hello_lib target is only specified for msvc and gcc toolsets. When requesting a build, the build system is trying to build hello_lib for another toolset, so it doesn't find a version of hello_lib that matches. The static and multithreaded options are pulled in from the requirements on the hello project and won't make a difference here.
>
> Your solution appears to be correct. If my suggestions don't work, try doing:
>
> bjam --v2 --debug-configuration hello
The debug output is given below. It does not seem helpful.
$ bjam --v2 --debug-configuration hello
notice: found boost-build.jam at
/cygdrive/c/Framework/hello1/boost-build.jam
notice: loading Boost.Build from /cygdrive/c/boost-cvs/boost/tools/build/v2
notice: loading site-config.jam from
/cygdrive/c/boost-cvs/boost/tools/build/v2/
site-config.jam
notice: loading user-config.jam from /home/Administrator/user-config.jam
notice: using gcc libraries :: <toolset>gcc :: /usr/bin /usr/lib
/usr/lib32 /usr
/lib64
notice: using gcc archiver :: <toolset>gcc :: /usr/bin/ar.exe
notice: using rc compiler :: <toolset>gcc :: /usr/bin/windres.exe
notice: iostreams: using prebuilt zlib
notice: iostreams: using prebuilt bzip2
warning: Python location is not configured
warning: the Boost.Python library won't be built
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(and if you don't know what ICU is then you probably don't need it).
error: No best alternative for ./hello
next alternative: required properties: <link>static
<threading>multi <toolse
t>gcc
not matched
next alternative: required properties: <link>static
<threading>multi <toolse
t>msvc
not matched
...found 1 target...
>
> and
>
> bjam --v2 --debug-generators hello
$ bjam --v2 --debug-generators hello
warning: Python location is not configured
warning: the Boost.Python library won't be built
Building Boost.Regex with the optional Unicode/ICU support disabled.
Please refer to the Boost.Regex documentation for more information
(and if you don't know what ICU is then you probably don't need it).
error: No best alternative for ./hello
next alternative: required properties: <link>static
<threading>multi <toolse
t>gcc
not matched
next alternative: required properties: <link>static
<threading>multi <toolse
t>msvc
not matched
...found 1 target...
Atrem
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