va_list尚未声明 [英] va_list has not been declared

查看:639
本文介绍了va_list尚未声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Fedora 11上编译一些工作代码时,我收到此错误:

When compiling some working code on Fedora 11, I am getting this error:

/usr/include/c++/4.4.1/cstdarg:56: error: ‘::va_list’ has not been declared

[doriad@davedesktop VTK]$ g++ --version
g++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2)

有谁知道问题是什么?

推荐答案

我有同样的错误消息,我解决了包括下一个文件

I had the same error message and I solved including one of the next files

#include <stdarg.h>

#include <cstdarg>

这篇关于va_list尚未声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆