Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-25 09:33:48


"John Maddock" <john_at_[hidden]> writes:

>> > c:\build\bin\fluid\store\store.dll\vc7.1\debug\threading-multi\store.dll
>> > c:\build\bin\fluid\store\store.dll\vc7.1\debug\threading-multi\store.lib
>> >> LINK : fatal error LNK1104: cannot open file
>> > 'libboost_date_time-vc71-mt-gd-1_31.lib'
>> >>
>> >> Any clues for me?
>
> Dave, it looks like you are linking to the dll versions of the libraries,
> but are not defining either BOOST_DATE_TIME_DYN_LINK or BOOST_ALL_DYN_LINK
> when building your source - without one or the other of these then the
> source won't know to mangle symbols with __declspec(dllimport), or to
> auto-link to the dll rather than static lib versions. Same argument applies
> to the other boost libs you are using.

Oh, nasty. I keep forgetting that static linking is the default here.

This seems like a real usability problem to me. My project used to
work just fine before auto_link capabilities were added. I specified
that I wanted to link to the dlls by putting them in my sources, and
everything worked. Now I have to add one or more <define>s to all my
targets, or I get confusing errors. Doesn't seem like an
improvement, at least for my usage model.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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