c++ - Cygwin 上的 Gearman : 'va_list' has not been declared

标签 c++ cygwin gearman

我通过 Cygwin 在 Windows 8.1 上安装 Gearman 1.1.12 并收到以下错误:

  CXX      libtest/libtest_libtest_la-formatter.lo
In file included from ./libtest/test.hpp:69:0,
                 from ./libtest/common.h:85,
                 from libtest/formatter.cc:39:
./libtest/exception.hpp:83:13: error: 'va_list' has not been declared
    void init(va_list);
              ^

我已验证源代码包含必要的包含,并且 GCC/G++ 编译器是最新版本 4.8.2

关于如何解决这个问题有什么想法吗?

最佳答案

我今天遇到了这个问题,通过包含 <cstdarg> 得到了“修复”在 libtest/test.hpp 上。

你检查了吗?

(想作为评论回复,但我还没有足够的代表)

关于c++ - Cygwin 上的 Gearman : 'va_list' has not been declared,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23066498/

相关文章:

java - 部署exe格式的应用程序

c++ - C++多线程错误: no matching function for call to 'std::thread::thread(<unresolved overloaded function type>

php - 持续运行的 Gearman Worker

php - 使用 Gearman 进行后台处理的 PHP 工作池的属性

php - Gearman - 客户

c++ - 从字符串中提取数字 (Regex C++)

c++ - 遍历自定义类的列表

linux - Fork() 在 Cygwin(在 Windows 上)和 Linux 中是不同的

c++ - 我如何强制 C++ 从全局命名空间中选择一个函数?

c++ - #include'ing .cpp 模板实现文件是一种不好的做法吗?