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

7.3k Views Asked by At

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

There are 1 best solutions below

0
On

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