Tip] gdi+ error, about min, max | OpenCV 2.x
2009.10.22 00:09

2.0 설치하고 기존 프로젝트를 빌드하는중 gdi+ 관련 에러가 나는데....

 

1>c:\program files\microsoft sdks\windows\v6.1\include\gdiplustypes.h(470) : error C3861: 'min': identifier not found
1>c:\program files\microsoft sdks\windows\v6.1\include\gdiplustypes.h(471) : error C3861: 'min': identifier not found

 

기존

#include <cv.h>
#include <highgui.h>
#include <cxcore.h>
#include <GdiPlus.h>

 

 

가 아래 내려와 있으면 min, max 매크로를 openCV 것으로 대체해서 에러가 나더군요.

 

그래서

#include <GdiPlus.h>

#include <cv.h>
#include <highgui.h>
#include <cxcore.h>

 

이런식으로 뒤집으면 됩니다. -_-a

 

너무 간단한거라 -_-;;


출처 : 오픈cv 네이버 카페

Posted by 우주여행가
,