zoukankan      html  css  js  c++  java
  • 编译 apachelog4cxx0.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 #

  • 相关阅读:
    第07组 Beta冲刺(2/5)
    第07组 Beta冲刺(1/5)
    第07组 Alpha事后诸葛亮
    第07组 Alpha冲刺(6/6)
    【Beta】软件使用说明——致社长
    【Beta】“北航社团帮”发布声明——小程序v2.0与网页端v1.0
    【Beta】“北航社团帮”测试报告——小程序v2.0与网页端v1.0
    [技术博客] 小程序扫码登录网页端原理
    [技术博客] 用户验证码验证机制---redis缓存数据库的使用
    [技术博客] 如何避免在代码中多重render
  • 原文地址:https://www.cnblogs.com/cnsanshao/p/2637074.html
Copyright © 2011-2022 走看看