c++ - Undefined Symbol ___gxx_personality_v0 on link -



c++ - Undefined Symbol ___gxx_personality_v0 on link -

i've been getting undefined symbol building command line:

$ gcc test.cpp undefined symbols: "___gxx_personality_v0", referenced from: etc...

test.cpp simple , should build fine. deal?

use

g++ test.cpp

instead, since c++ code.

or, if really want utilize gcc, add together -lstdc++ command line, so:

gcc test.cpp -lstdc++

running md5 against a.out produced under each scenario shows it's same output.

but, yeah, g++ makes world simpler place.

c++ c gcc g++

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -