代码:
#include // 导入iostream
#include<opencv2\opencv.hpp> // 导入opencv
using namespace std; // 常规名称空间
using namespace cv; // 应用Opencv名称空间
int main(int argc, char** argv) {
Mat src = imread("E:\Opencv-4.6.0\opencv\sources\samples\data\lena.jpg");
imshow("input", src);
waitKey(0);
destroyAllWindows();
return 0;
}
错误提示:
错误 C1189 #error: STL1003: Unexpected compiler, expected C++ compiler. secondTestProject01 E:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.33.31629\include\yvals_core.h 23