'vector' in namespace 'std' does not name type

I am developing a C ++ application using CodeBlocks 10.05 on Debian 7.0.0.

For some reason, the following code

#include <iostream> std::vector< int > delaunayDiv(const std::vector< int <T> > & vP, cv::Rect boundRect, std::vector<int>& triangles, int& numTriangles, bool lookRight); 

returns the following error

 error: 'vector' in namespace 'std' does not name a type 
+42
c ++ codeblocks
Jun 01 '13 at 1:39
source share
2 answers

You must include the vector header:

 #include <vector> 
+88
Jun 01 '13 at 1:39
source share

#include <vector> doesn't work when I use Clang, I really don't know if this is a difference in C ++ versions or libraries.

#include <set> does the trick.

-four
Mar 15 '17 at 19:49
source share



All Articles