How to use boost

Software
Version
Cluster
boost
1.77.0
Dardel

Load the module with:

$ module load Boost/1.77.0-cpeGNU-21.11

The module prepends $BOOST_HOME/lib to LD_LIBRARY_PATH and sets BOOST_HOME.

The include directory is then under $BOOST_HOME/include.

As an example, we can compile and link a code (here hello.cpp) like this:

$ module load PDC
$ module load Boost
$ CC -I$BOOST_HOME/include hello.cpp -L$BOOST_HOME/lib -lboost_system

Disclaimer

PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.