linux添加boost路径
先将boost目录移动到/usr/local:
sudo mv boost_1_68_0 /usr/local
然后,打开/etc/profile,把路径加上:
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/boost_1_68_0
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/boost_1_68_0/stage/lib
注意:等号两侧没有空格,hpp文件直接用g++编译,似乎会有问题,自己写的c++文件,最好用后缀名cpp.