Reputation: 91
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
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