编译 apache-log4cxx-0.10.0inputstreamreader.cpp:66: error: ‘memmove’ was not declared in this sco
2012-08-13 21:29
369 查看
添加补丁,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 #
下面为补丁的代码:
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 #
相关文章推荐
- 解决Cygwin编译cocos2dx 遇到的 error: 'UINT64_C' was not declared in this scope 问题
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- 编译是报error: 'EVNET_COME_TO_FOREGROUND' was not declared in this scope
- opencv 2.3交叉编译时出现dist.h:63:68: error: 'fabsl' was not declared in this scope
- 编译opencv 2.4.13error:1 /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
- ndk编译错误:error: 'nullptr' was not declared in this scope
- Arduino- 编译引用 IRremote 出现 error: ‘TKD2′ was not declared in this scope
- 用g++ 编译 ffmpeg 编译出现 error: 'UINT64_C' was not declared in this scope 或 missing -D__STDC_CONSTANT_MACROS
- 调用ffmpeg库编译时出现common.h:175:47: error: 'UINT64_C' was not declared in this scope
- c++ - fcgio.cpp:50: error: 'EOF' was not declared in this scope - Stack Overflow
- 【Cocos2d-x】编译Android工程时提示error: 'GL_LINE_SMOOTH' was not declared in this scope
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- C++ shared_ptr 编译 error ‘shared_ptr’ was not declared in this scope修复
- 编译第一个Linux程序遇到的问题- ‘cout’ was not declared in this scope
- mmseg 安装错误 error: ’strncmp’ was not declared in this scope
- error: 'system' was not declared in this scope
- error: ‘nullptr’ was not declared in this scope
- error: ‘errno’ was not declared in this scope
- error: '_localtime_not_threadsafe_' was not declared in this scope
- Fixed itk-3.20.1 on gcc-4.8, error: ‘memcpy’ was not declared in this scope