undefined reference to '__gxx_personality_v0'

undefined reference to '__gxx_personality_v0' 编译 c++ 程序需要添加 -lstdc++ option. sample: gcc -lstdc++ -o test test.c,否则会报 "undefined reference to '__gxx_personality_v0' " 错误 或者用g++也可以

你可能感兴趣的:(c,gcc,reference)