apache-log4cxx-0.10.0-patched.tar.gz


log4cxx  컴파일 안되는 경우 해결법 (A solution for the log4cxx compile error)

- It has been tested on gcc 4.6.1

1. Add "#include <string.h>" on those files
apache-log4cxx-0.10.0/src/main/cpp/inputstreamreader.cpp
apache-log4cxx-0.10.0/src/main/cpp/socketoutputstream.cpp

2. Add "#include <string.h>" and "#include <stdio.h>" on this file
apache-log4cxx-0.10.0/src/examples/cpp/console.cpp

3.Change those Makefile.am, change the first one to the second one.
(1) src/main/include/log4cxx/private/Makefile.am,

    * "privateinc_HEADERS= $(top_builddir)/src/main/include/log4cxx/private/*.h log4cxx_private.h"
    * "privateinc_HEADERS= $(top_builddir)/src/main/include/log4cxx/private/*.h"

(2) src/main/include/log4cxx/Makefile.am

    * "log4cxxinc_HEADERS= $(top_srcdir)/src/main/include/log4cxx/*.h log4cxx.h"
    * "log4cxxinc_HEADERS= $(top_srcdir)/src/main/include/log4cxx/*.h"

4. configure & make & make install (root)

Posted by kkckc
,