arm linux c++编译std 提示 undefined reference

Linux下编译C++,不会自动的连接C++的标准库,像c++中的new,delete都会报错undefinedreference to new,std中相关的连接更会报错;解决的办法是在在link中添加-lstdc++开关选项,即可使用new和delete运算符。

在eclipse中添加的格式如下:

arm linux c++编译std 提示 undefined reference