Undefined Symbol ___gxx_personality_v0 on link-Collection of common programming errors
The deal is that you’re tired and /or dumb. 🙂
Use
g++ test.cpp
instead, since this is c++ code.
Or, if you really want to use gcc
, add -lstdc++
to the command line, like so:
gcc test.cpp -lstdc++
Running md5
against the a.out
produced under each scenario shows that it’s the same output.
But, yeah, g++
probably makes your world a simpler place.
Originally posted 2013-11-09 22:43:03.