Boost logo

Boost-Build :

Subject: Re: [Boost-build] another simple boost build failure
From: Ronny Herzog (herzog_at_[hidden])
Date: 2012-10-23 16:14:46


Thank you very much, Juergen!

Cheers,
Ronny

Am 10/23/2012 4:19 PM, schrieb Jürgen Hunold:
> Hi Ronny,
>
> On Tuesday, 23. October 2012 11:10:46 Ronny Herzog wrote:
>> Dear all,
>>
>> I successfully imported the boost_filesystem, but no I am stuck with
>> boost_regex. The linker complains that it is not able to open
>> 'libboost_regex-vc90-mt-gd-1_50.lib' although it is there (in
>> c:\boost_1_50_0\stage\lib). Again, I am using Windows 7. Anyone has an
>> idea why? Because the boost::filesystem works.
> Well, I think autolinking is getting in the way because your Jamroot is
> slightly wrong and fails to pull in Boost.Regex.
>
>> link /NOLOGO /INCREMENTAL:NO /DEBUG /MACHINE:X86 /subsystem:console
>> /out:"..\boo
>> st-build\msvc-9.0\debug\threading-multi\spectraImport.exe"
>> @"..\boost-build\ms
>> vc-9.0\debug\threading-multi\spectraImport.exe.rsp"
> The interesting part is in the response file "...\spectraImport.exe.rsp". To
> get its contents use -d+2 or -n. And please attach the (zipped) output next
> time.
>
> But I guess the problem is here:
>
>> project spectraImport
>>
>> : requirements <library>/boost/filesystem//boost_filesystem
>> : requirements <library>/boost/regex//boost_regex
>> : build-dir ../boost-build
>>
>> ;
> You can only have one "requirements" block. Example below:
>
> project spectraImport
> : requirements
> <library>/boost/filesystem//boost_filesystem
> <library>/boost/regex//boost_regex
> # Disable autolinking
> <define>BOOST_ALL_NO_LIB
> : build-dir ../boost-build
> ;
>
> And the best is to completely disable autolinking when using Boost.Build. It
> only gets in the way.
>
> Hope this helps,
>
> Yours,
>
> Jürgen


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