由于雷霄骅大神故去,但是https://blog.csdn.net/leixiaohua1020/article/details/28685327没有更新,当前用的版本是Visual Studio Community 2019,所以开源项目需要更新
有以下错误需要修改
1.参考https://blog.csdn.net/evan369/article/details/100150685
需要增加MFC的支持
2.出现“long rint(double)”: 重载函数与“double rint(double)”
这里和系统库函数有冲突,需要重定义rint函数
long rint_(double x)
{
if(x >= 0.)
return (long)(x + 0.5);
else
return (long)(x - 0.5);
}
3.文本后缀“PRId64”无效;未找到文文本运算符或文本运算符模板“operator """"PRId64”
参考https://www.jianshu.com/p/6a6437036471
在PRId64前保留一个空格