[CentOS]CentOS下编译CPP文件时报错[undefined reference to `__gxx_personality_v0' collect2: ld]的解决办法
在CentOS环境下编译CPP时报出
undefined reference to `__gxx_personality_v0' collect2: ld
以上错误,调查了一下,加上参数[-lstdc++]就可解决
例:
gcc -lstdc++ a.cpp
参考自http://mlq.blog78.fc2.com/?mode=m&no=14
-----