“undefined symbols for architecture x86_64” on Mavericks OSX

got another headached error while compiling c++ in Maverick OSX (10.9)
Undefined symbols for architecture x86_64:
"std::...
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

solution:
add -stdlib=libstdc++ -lstdc++ as compiler flags

Leave a Reply

Your email address will not be published. Required fields are marked *