Uma*_*man 18 c++ eclipse linux
我在linux中使用eclipse开发一个c ++应用程序,我从以下代码行得到这个编辑器注释错误"符号'向量'无法解析"
std::vector<unsigned char> buffer;
Run Code Online (Sandbox Code Playgroud)
我觉得有些库缺失或路径没有设置.我明确下载了STL,但没有用.我是否必须在我的Linux上重新安装GCC?
您需要在程序中包含 STL 矢量定义。放:
#include <vector>
Run Code Online (Sandbox Code Playgroud)
在文件的顶部,它应该可以工作。