Program Language/OpenCV
error C3861: 'min': identifier not found
야곰야곰+책벌레
2024. 1. 11. 14:13
728x90
반응형
1>c:\program files (x86)\windows kits\8.1\include\um\gdiplustypes.h(689): error C3861: 'min': identifier not found
1>c:\program files (x86)\windows kits\8.1\include\um\gdiplustypes.h(690): error C3861: 'min': identifier not found
오랜만에 봐서 살짝 당황했네. MIN, MAX가 중복 선언돼서 문제 되는 건 기억나는데..
이건 opencv와 Gdiplus의 min, max가 충돌(?) 혹은 선점이 잘못되어서 그런 것 같다.
<GdiPlus.h>를 사용하지 않았는데, 이런 에러가 떠다니, opencv.hpp 보다 먼저 인클루드 해주면 된다.
#include <GdiPlus.h>
#include "opencv2/opencv.hpp"
살짝 당황했지만 해결..
728x90
반응형