반응형
네임 스페이스 '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
반응형
'program story' 카테고리의 다른 글
T-SQL 하위 문자열-마지막 3 자 (0) | 2020.12.04 |
---|---|
rabbitmq 관리 플러그인 (rabbitmq-plugins) 설치 방법 (0) | 2020.12.04 |
HashSet 만들기 (0) | 2020.12.04 |
XPath 표현식에서 Regex를 사용할 수 있습니까? (0) | 2020.12.04 |
요소의 상단 위치를 얻는 방법은 무엇입니까? (0) | 2020.12.04 |