I’ve been getting this undefined symbol building with this command line:
$ gcc test.cpp Undefined symbols: '___gxx_personality_v0', referenced from: etc...
test.cpp is simple and should build fine. What is the deal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
instead, since this is c++ code.
Or, if you really want to use
gcc, add-lstdc++to the command line, like so:Running
md5against thea.outproduced under each scenario shows that it’s the same output.But, yeah,
g++probably makes your world a simpler place.