Boost C++ Libraries

From HPC

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
 
http://www.boost.org/
http://www.boost.org/
Line 25: Line 24:
   -L/usr/local/boost1.39.0/lib -lboost_regex-gcc34-mt-d-1_36
   -L/usr/local/boost1.39.0/lib -lboost_regex-gcc34-mt-d-1_36
-
[[Category:Getting Started]][[Category:Software Available]][[Category:C Programmin]]
+
[[Category:Getting Started]][[Category:Software]][[Category:C Programmin]]

Current revision as of 11:34, 28 May 2009

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