program story

네임 스페이스 'std'의 'vector'가 유형 이름을 지정하지 않습니다.

inputbox 2020. 12. 4. 08:11
반응형

네임 스페이스 'std'의 'vector'가 유형 이름을 지정하지 않습니다.


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> 트릭을 수행합니다.

참고 URL : https://stackoverflow.com/questions/16868230/vector-in-namespace-std-does-not-name-a-type

반응형