Thanks Vlad,

That's what I needed.  I should have been clearer about bjam.

Damien

From: Vladimir Prus [mailto:vladimir@codesourcery.com]
To: boost-users@lists.boost.org
Sent: Sun, 15 Feb 2009 00:45:50 -0700
Subject: Re: [Boost-users] Boost's automatic selection of debug vs release libaries on link - how to disable?

Damien Hocking wrote:

> Hello everyone,
>
> I've noticed that when linking Boost libraries, the linker implicitly knows whether it requires a
> debug or a release Boost library, and what the full name of the library is. E.g. on Windows the
> linker wants "boost_serialization-vc80-mt-d-1_37.lib" in debug and
> "boost_serialization-vc80-mt-1_37.lib" in release.
>
> I'm working in an SCons build system where SCons runs the show and the Boost libraries will be
> custom-renamed and the linker told specifically what libraries to link. Is there any way to
> disable this implicit naming feature in the bjam build step through a compiler option?

- There's no "bjam build step", the official build system used by C++ Boost is called Boost.Build
- The autolink behaviour is not controlled by Boost.Build, it is controlled by MS-specific #pragmas
that occur (indirectly) in the headers of affected libraries
- You can disable autolink by defining BOOST_ALL_NO_LIB macro when building the application that
uses C++ Boost libraries.

- Volodya



_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users