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