Boost C++ Libraries

From HPC

Jump to: navigation, search

http://www.boost.org/

Boost libraries can be found in /usr/local/boost???? where ???? is the version number.

If you need a newer version, you can compile it within your home directory or ask for it to be installed centrally on the hpc.

Example for version 1.39.0

/usr/local/boost1.39.0

To use in your compiling

LDFLAGS=" -L/usr/local/boost1.39.0/lib " CPPFLAGS=" -I/usr/local/boost1.39.0/include " make 

OR

export LDFLAGS=" -L/usr/local/boost1.39.0/lib "
CPPFLAGS=" -I/usr/local/boost1.39.0/include "
make

OR

gcc -I /usr/local/boost1.39.0/include example.cpp -o example \
  -L/usr/local/boost1.39.0/lib -lboost_regex-gcc34-mt-d-1_36
Personal tools