Skip to content
Euccas Chen edited this page Aug 2, 2018 · 3 revisions

Trouble Shooting

undefined reference to `__gxx_personality_v0'

Run gcc myprog.cpp, see errors:

tmp/ccQ0q0g5.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

You're compiling C++, but you're not linking to the C++ runtime library. Use g++ to link C++ programs, not gcc. (Or manually add -lstdc++ to the linker command).

Find unresolved symbols in shared library

nm -u mylib.so
Clone this wiki locally