Error: "__gxx_personality_v0" Undefined Reference

  • Thread starter Thread starter Hamhiu
  • Start date Start date
  • Tags Tags
    Error Means
Click For Summary
SUMMARY

The forum discussion addresses the error message "__gxx_personality_v0" undefined reference, which occurs during the linking phase of C++ compilation. The solution provided is to compile the code using the g++ compiler instead of gcc, as g++ is specifically designed to handle C++ code and its associated features. This distinction is crucial for successful compilation and linking of C++ programs.

PREREQUISITES
  • Understanding of C++ programming language
  • Familiarity with GCC (GNU Compiler Collection)
  • Knowledge of compilation and linking processes
  • Basic command line usage for compiling code
NEXT STEPS
  • Learn about the differences between g++ and gcc compilers
  • Explore C++ exception handling and its implications on linking
  • Research common linking errors in C++ and their resolutions
  • Study the use of Makefiles for managing C++ project builds
USEFUL FOR

C++ developers, software engineers, and anyone troubleshooting compilation issues in C++ projects.

Hamhiu
Messages
5
Reaction score
0
/tmp/ccUahLBZ.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

?? Thank you,
 
Technology news on Phys.org
Compile using g++ instead of gcc.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 16 ·
Replies
16
Views
6K
Replies
32
Views
7K
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K