|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-08-07 08:51:48
Mikhail Kupchik <Mikhail.Kupchik_at_[hidden]> writes:
> Hello All,
>
> I have a question regarding integration of Boost library into a
> project which uses SCons build system.
>
> We'd like to build Boost as static-linkable library under MSVC7.1
> for Win32, and make it dependable on compiler options which are set
> from root of the project in SCons configuration file - like /GL
> (link-time code generation), /Og (global optimization) etc.
>
> What is the most simple way to do this? If we simple link all
> libs/src/*.cpp files into single static library, will it work?
Nope. Some of them #define the same symbol.
> Are there any #defines, project-specific include dirs,
> project-specific compiler options etc?
Yes.
The best way to find out how the libraries need to be built is to use
Boost.Build to generate the command lines by passing -o cmdfile on the
bjam command-line. Then you can inspect the contents of cmdfile and
figure out how to get your build tool to do the same thing.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net