【发布时间】:2019-05-23 05:13:04
【问题描述】:
我正在尝试从 x86_64 机器为 ARM 交叉编译 log4cxx。编译时出现'memmove' was not declared in this scope的错误提示。
我使用的是 Linaro GCC 交叉编译器版本 4.9.4。为了防止交叉编译出现不同的问题,我将CPPFLAGS=-DAPR_IOVEC_DEFINED 提供给配置命令。这是 log4cxx 源的 0.10.0 版本,从 Apache Logging Services website 下载。
完整的错误信息如下:
inputstreamreader.cpp:66:64: error: 'memmove' was not declared in this scope
memmove(buf.data(), buf.current(), buf.remaining());
我知道“未声明”错误通常表示未包含带有声明的文件,但在发布的代码中这似乎不太可能成为问题。
【问题讨论】:
标签: log4cxx