用gcc编译C++程序时,会报:undefinedreference to '__gxx_personality_v0错误,解决方法:
1.使用g++编译;
2.使用gcc编译,但需添加编译参数:-lstdc++;
原因就是要连接C++标准库。
用gcc编译C++程序时,会报:undefinedreference to '__gxx_personality_v0错误,解决方法:
1.使用g++编译;
2.使用gcc编译,但需添加编译参数:-lstdc++;
原因就是要连接C++标准库。