下载开源的图像处理上位机到本机,编译时出现问题。使用cvui时调用sprintf_s函数(实际为sprintf函数),同一cpp文件下两行同样sprintf_s函数第一句报错第二句未报错。
#define sprintf_s sprintf
const char* path = "D:\photo\%d.bmp";
int number_image = 229;
char str[20];
sprintf_s(str, path, number_image);
全部文件:https://github.com/w1oves/imageDeal.git
未识别标识符“sprintf_s"
直接更改sprintf_s函数为sprintf函数,然而函数变量就报错了。