I have MacOS X 10.3.5, gcc 3.3 and I try to use log4cxx 0.9.7.
To compile the lib, I had to modify the following lines in serversockect.cpp :
#include <log4cxx/config.h>
#ifdef WIN32 #include <windows.h> #include <winsock.h> #else #include <netinet/in.h> #endif
into #include <log4cxx/config.h>
#ifdef WIN32 #include <windows.h> #include <winsock.h> #else #ifdef __APPLE__ #include <netdb.h> #endif #include <netinet/in.h> #endif
The trivial example works fine but delayedloop exit on signal 11. I try to understand why. I think it is a library problem.
If it can helps somebody, I made a XCode 1.5 project of log4cxx. For the moment, it compiles the dynamic library and the two examples. In the future, I will add more features.
Bernard.
