命名空间'std'中的'vector'不命名类型
'vector' in namespace 'std' does not name a type
我正在Debian 7.0.0上使用CodeBlocks 10.05开发一个C++应用程序。
出于某种原因,以下代码
#include <iostream>
std::vector< int > delaunayDiv(const std::vector< int <T> > & vP, cv::Rect boundRect,
std::vector<int>& triangles, int& numTriangles, bool lookRight);
返回以下错误
error: 'vector' in namespace 'std' does not name a type
您应该包括vector
标头:
#include <vector>
#include <vector>
在我使用Clang时不起作用,我真的不知道这是否是C++版本或库中的差异。
#include <set>
起作用。
相关文章:
- 使用模板类的自定义列表类型中的内存泄漏
- C++ - 检查结构数据类型中的单词是否为回文
- 为模板参数类型中的新对象分配内存
- 如何替换给定类型中的模板参数
- 交换未定义数据类型中的字节顺序
- 如何访问从 COM 对象返回的 VARIANT 数据类型中的安全数组C++?
- 元数据操作失败LNK2022错误 (8013118D):重复类型中的布局信息不一致 (选择设备参数):(0x020002
- 使用 dectlype 推断模板元素类型中的数据类型是否正确?
- std::list 模板是否需要其实例类型中的复制构造函数(或等效项)?
- 如何访问PCLPORTCLOUD2类型中的点
- 为什么在.h中定义的私有结构需要.cpp文件中的返回类型中的范围
- 函数返回类型中的模板类型推断
- 尾随返回类型中的占位符类型的用途是什么
- Soci Clob数据类型中的Oracle C
- 访问lambda尾随返回类型中的概括捕获对象
- 返回对特定尺寸数组的引用,而无需明确说明返回类型中的大小
- 函数类型中的星号
- 为什么"char"结构类型中的编程实践不好?
- 类类型中的错误是c++中的异常
- 类类型中的访问器函数未从 C++ 中的私有数据返回正确的值