export PATH=$PATH:/usr/local/include/:/usr/local/lib/
Linux Boost C++ library with Eclipse
download boost
http://www.boost.org/
Unzipped boost and go to the unzipped boost directory
$sudo ./bootstrap.sh --prefix=path/to/installation/prefix (I used /usr/local)
$sudo ./b2 install
update LD_LIBRARY_PATH by using ldconfig command.
$sudo ldconfig
Setting Eclipse for Boost library,
ex)
GCC C++ Compiler -> properties -> C/C++ Build -> Settings -> includes -> path/to/installation/prefix/include
GCC C++ Linker -> Libraries serch path -> path/to/installation/prefix/include
GCC C++ Linker -> Libraries-> add 'boost_system'

add boost_system even you installed from package installer.
댓글 없음:
댓글 쓰기