“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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s