1

Hi I'm running a makefile that has the line

ADDLIBS = -stdlib=libstdc++ -L${BOOST_DIR}/lib -lboost_program_options

but I get the exception

g++: error: unrecognized command line option ‘-stdlib=libstdc++’

Could someone tell me how I modify the makefile?

1 Answer 1

2

That flag is for clang. It's not a valid flag for GCC. So just remove it:

ADDLIBS = -L${BOOST_DIR}/lib -lboost_program_options
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.