Boost logo

Boost :

Subject: Re: [boost] [newbie] using non "header-only" boost libraries, but not linking the ".lib"
From: John Maddock (john_at_[hidden])
Date: 2008-12-31 07:46:00


Enrique Nieloud wrote:
>> I'm using filesystem library. I'm using it under vs2005 on windows,
>> and g++ on mac.
>> Instead of linking the .lib I'd like to include the source files of
>> the fs library in my project.
>> I tried to include all the ".cpp" under the filesystem/src directory
>> in the vs2005 project. But the linker still ask for the lib. As far
>> as know I
>> didn't mention the .lib in the project.
>>
>> Why is that?

By default with msvc the headers will try to "auto-link" to the libraries
that get built if you do a regular build and install with bjam. Otherwise
please define BOOST_ALL_NO_LIB when building your app to disable the
auto-link feature.

HTH, John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk