tags:

views:

233

answers:

1

Say I have the path to the headers and lib files of boost, in $BOOST_INLCUDE and $BOOST_LIB

how do I build a simple hello world?

thanks

+5  A: 

Add them with -I and -L parameters.

g++ helloworld.cpp -o helloworld -I"$BOOST_INLCUDE" -L"$BOOST_LIB" -lboost-whatever-lib-needed
Eugene