Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > C++ > FAQ C++ > FAQ C++ - gcc/g++ > Undefined Symbol ___gxx_personality_v0

Undefined Symbol ___gxx_personality_v0


Probably you try to compile a C++ code with gcc instead of g++

gcc test.cpp
Undefined symbols:
 "___gxx_personality_v0", referenced from ...
...

Use g++ instead:

g++ test.cpp

Also in this section

  1. Disable all gcc / g++ warnings
  2. gcc / g++ preprocessor flags for the compiler version number
  3. Build in release mode with full optimizations in gcc / g++
  4. Code that compiles with gcc but not g++
  5. gcc / g++ find where a header file is included from
  6. gcc /g++ Why some variables are not detected as not used during compilation?
  7. g++ compilation option -Weffc++
  8. Undefined Symbol ___gxx_personality_v0
  9. gcc / g++ how to dump all preprocessor definitions