博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
编译 apache-log4cxx-0.10.0inputstreamreader.cpp:66: error: ‘memmove’ was not declared in this sco...
阅读量:5826 次
发布时间:2019-06-18

本文共 2804 字,大约阅读时间需要 9 分钟。

添加补丁,patch -p1 <补丁名,

下面为补丁的代码:

diff -upr orig/apache-log4cxx-0.10.0//src/examples/cpp/console.cpp apache-log4cxx

-0.10.0/src/examples/cpp/console.cpp

--- orig/apache-log4cxx-0.10.0//src/examples/cpp/console.cpp    2008-04-01 00:34:

52.000000000 +0200

+++ apache-log4cxx-0.10.0/src/examples/cpp/console.cpp  2008-12-05 15:14:28.00000

0000 +0100

@@ -16,6 +16,7 @@

  */

 

 #include <stdlib.h>

+#include <string.h>

 #include <log4cxx/logger.h>

 #include <log4cxx/consoleappender.h>

 #include <log4cxx/simplelayout.h>

diff -upr orig/apache-log4cxx-0.10.0//src/main/cpp/inputstreamreader.cpp apache-l

og4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp

--- orig/apache-log4cxx-0.10.0//src/main/cpp/inputstreamreader.cpp      2008-04-0

1 00:34:09.000000000 +0200

+++ apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp    2008-12-05 15:14:

43.000000000 +0100

@@ -15,6 +15,7 @@

  * limitations under the License.

  */

 

+#include <string.h>

 #include <log4cxx/logstring.h>

 #include <log4cxx/helpers/inputstreamreader.h>

 #include <log4cxx/helpers/exception.h>

diff -upr orig/apache-log4cxx-0.10.0//src/main/cpp/socketoutputstream.cpp apache-

log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp

--- orig/apache-log4cxx-0.10.0//src/main/cpp/socketoutputstream.cpp     2008-04-0

DellR710:/home/deps # more patch 

diff -upr orig/apache-log4cxx-0.10.0//src/examples/cpp/console.cpp apache-log4cxx-0.10.0/src/examples/cpp/console.cpp

--- orig/apache-log4cxx-0.10.0//src/examples/cpp/console.cpp    2008-04-01 00:34:52.000000000 +0200

+++ apache-log4cxx-0.10.0/src/examples/cpp/console.cpp  2008-12-05 15:14:28.000000000 +0100

@@ -16,6 +16,7 @@

  */

 

 #include <stdlib.h>

+#include <string.h>

 #include <log4cxx/logger.h>

 #include <log4cxx/consoleappender.h>

 #include <log4cxx/simplelayout.h>

diff -upr orig/apache-log4cxx-0.10.0//src/main/cpp/inputstreamreader.cpp apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp

--- orig/apache-log4cxx-0.10.0//src/main/cpp/inputstreamreader.cpp      2008-04-01 00:34:09.000000000 +0200

+++ apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp    2008-12-05 15:14:43.000000000 +0100

@@ -15,6 +15,7 @@

  * limitations under the License.

  */

 

+#include <string.h>

 #include <log4cxx/logstring.h>

 #include <log4cxx/helpers/inputstreamreader.h>

 #include <log4cxx/helpers/exception.h>

diff -upr orig/apache-log4cxx-0.10.0//src/main/cpp/socketoutputstream.cpp apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp

--- orig/apache-log4cxx-0.10.0//src/main/cpp/socketoutputstream.cpp     2008-04-01 00:34:09.000000000 +0200

+++ apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp   2008-12-05 15:14:48.000000000 +0100

@@ -15,6 +15,7 @@

  * limitations under the License.

  */

 

+#include <string.h>

 #include <log4cxx/logstring.h>

 #include <log4cxx/helpers/socketoutputstream.h>

 #include <log4cxx/helpers/socket.h>

DellR710:/home/deps #

转载地址:http://dfsdx.baihongyu.com/

你可能感兴趣的文章
一本书的摘录
查看>>
重排序(转载)
查看>>
python+selenium之字符串切割操作
查看>>
串结构练习——字符串匹配
查看>>
linux下输入密码不回显
查看>>
《构建之法》读书笔记
查看>>
拿下阿里、头条、滴滴的offer后谈谈面试经验---动身前看一看
查看>>
android开发(49) android 使用 CollapsingToolbarLayout ,可折叠的顶部导航栏
查看>>
【ERP】如何在多行数据块中实现仅能勾选唯一的主联系人
查看>>
Oracle 数据库优化的R方法(Method R)
查看>>
CentOS最小化安装系统开启网卡
查看>>
互联网+升级到智能+ 开启万物智联新时代
查看>>
Linux文本编辑器之Nano
查看>>
【原】IOS中KVO模式的解析与应用
查看>>
理解 QEMU/KVM 和 Ceph(3):存储卷挂接和设备名称
查看>>
[MFC] CList
查看>>
[Android Pro] 完美Android Cursor使用例子(Android数据库操作)
查看>>
c++中sizeof的分析
查看>>
线程间操作无效: 从不是创建控件的线程访问它的解决方法
查看>>
hdu 1236 排名
查看>>