jyu429
jyu429

Reputation: 91

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

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?

Upvotes: 1

Views: 7435

Answers (1)

MadScientist
MadScientist

Reputation: 101081

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

Upvotes: 2

Related Questions