[newbie] using non "header-only" boost libraries, but not linking the ".lib"

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? The project files are created using cmake.

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.

Hi John, On Wed, Dec 31, 2008 at 10:46 AM, John Maddock <john@johnmaddock.co.uk>wrote:
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.
thanks! - Enrique Nieloud
participants (3)
-
Enrique Nieloud
-
Enrique Nieloud
-
John Maddock