0

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?

1 Answer 1

7

Add them with -I and -L parameters.

g++ helloworld.cpp -o helloworld -I"$BOOST_INLCUDE" -L"$BOOST_LIB" -lboost-whatever-lib-needed
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.