Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2007-12-08 05:01:18

John Pavel wrote:
>> Which compiles in VC++ 2008, but does not link:
>> fatal error LNK1104: cannot open file
>> 'libboost_program_options-vc90-mt-1_35.lib' generate_dirac_delta
>> The boost has been built into stage using bjam, which generates a
>> boost_program_options-vc90-mt-1_35.lib (and .dll) and (almost) all
>> the other libraries. In fact the only files in the stage directory
>> that start with
>> lib are libboost_test_exec_monitor-vc90-mt-1_35.lib and
>> libboost_test_exec_monitor-vc90-mt.lib

Libraries with a "lib" prefix are the static libraries, and those without
are the shared libraries. So either:

* Define BOOST_ALL_DYN_LINK when compiling to force the header to look for
the shared libraries or:
* Build program_options with "bjam link=static stage"

HTH, John.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at