编译 apache-log4cxx-0.10.0inputstreamreader.cpp:66: error: ‘memmove’ was not declared in this sco...

添加补丁,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 #

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值