For Windows x64In my experience, build from source is best if I want to link boost library for static linking. Remember to use the Visual Studio Command Prompt or b2 cannot find the commandcl.exe . When running bootstrap/b2, the options are below:$ bootstrap # To build Boost for 1) x64 configuration, 2) static linking, and 3) Visual Studio 2010 $ b2 --toolset=msvc-10.0 architecture=x86 address-model=64 link=static $ b2 install --prefix=C:\boost Related discussions on StackOverflow: 64-bit version of Boost for 64-bit windows How do you build the x64 Boost libraries on Windows? VC++ cl.exe — DLL not found For LinuxIf bzip does not exist, use b2 as follows: ./b2 -sNO_BZIP2=1 Note that on Linux, the libraries must be manually linked. Reference: Installation from http://www.boost.org/. |
Memo-migrated >