-
Notifications
You must be signed in to change notification settings - Fork 0
GCC
Euccas Chen edited this page Aug 2, 2018
·
3 revisions
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).
nm -u mylib.so