如何修复 va_list/va_arg 相关的 C 错误 'expected expression before int'
问题:
你有类似这样的 C 代码
但当你尝试编译它时,你看到类似这样的错误消息
解决方案
此错误发生是因为 va_arg 未声明。添加
在错误发生的源文件顶部。这将包含 va_list 和 va_arg 函数的定义。
Check out similar posts by category:
C/C++, GCC Errors
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow