报错va_start argument must not have reference type and must not be parenthesized问题应该在这三个函数里面,如何解决?

img

img

img


报错va_start argument must not have reference type and must not be parenthesized
问题应该在这三个函数里面,错误不在代码里面,在文档里面,查了半天资料也没找到答案

意思是va_start(ap,e)中,这个e不能是引用类型

我也出现了这样的问题,我用VS2019打开一个2000左右的程序,它太老了。
原因可能是19的安全检查没有通过它,我的方法是直接关闭它:
C/C++——》预处理器——》预处理器定义:添加“_CRT_NO_VA_START_VALIDATION”。
希望对你有帮助,有的话请点个赞吧。