解压安装介质:

将解压后的目录移动到“/usr/local”:

设置环境变量:BOOST_ROOT

Boost测试:
接收多个整数值,然后,乘以三,反馈输出。(该例子是Boost介质包中的官方样例)
boost_simple_program
上面的例子的具体实践如下所示:

关于上面代码中引用的头文件:

——————————————————
Done。

1 thought on “Install Boost on RHEL6”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装