boost 系列 2:boost 编译
PART 1:
- windows VS2008 参考http://hi.baidu.com/chinacharis/blog/item/1725d1dc9cc3c03d5982ddfc.html
- 注意1 使用 Visual Studio 2008命令提示 进行操作。
-
注意2 编译后的lib 正如其显示
The Boost C== Libraries were successfully built!
-
The following directory should be added to to complier include paths:
-
The following directory should be added to to linker library paths:D:\WORK\CURRENT\boost\stage\libstage(即在"某平台:下编译,此为windows 32 位系统)
D:\WORK\CURRENT\boost
仅g++编译,特定平台参考 上面的网址。
Easy Build and Install
Issue the following commands in the shell (don't type $; that represents the shell's prompt):
$ cd path/to/boost_1_46_1
$ ./bootstrap.sh --prefix=path/to/installation/prefix (build目录,我的是build_boost目录,见下方红字部分)
to install somewhere else. Also, consider using the --show-libraries and --with-libraries=library-name-list options to limit the long wait you'll experience if you build everything. Finally,
$ ./bjam install
will leave Boost binaries in the lib/ subdirectory of your installation prefix. You will also find a copy of the Boost headers in the include/ subdirectory of the installation prefix, so you can henceforth use that directory as an #include path in place of the Boost root directory.
lib:(库文件)
dengwei@localhost boost_1_47]$ find ./* -name *.a
...