Saturday, May 9, 2015

Compile C++ BOOST Example

Playing around with Boost 1.58 library, i need to experience the compile and run the examples.
I go into libs/serialization/examples/ run b2 hummm seems to build everything. So give it a try
to compile it "by-hands"

$ pwd

/opt/c++/boost_1_58_0/libs/serialization/example

$ export LD_LIBRARY_PATH=/opt/c++/boost_1_58_0/stage/lib:$LD_LIBRARY_PATH

$ c++ demo.cpp -o demo -L /opt/c++/boost_1_58_0/stage/lib -lboost_serialization-mt

$ ./demo

** Throws some log meaning the application compiled and run successfully


Hurray!

No comments: