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? Are there any #defines, project-specific include dirs, project-specific compiler options etc? Maybe anyone already have similar experience and have SConscript files for Boost? -- Best regards, Mikhail mailto:Mikhail.Kupchik@prime-expert.com
Mikhail Kupchik
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
participants (2)
-
David Abrahams
-
Mikhail Kupchik