On Jun 24, 2008, at 1:57 AM, Phil Pellouchoud wrote:
Hi,
I am trying to compile some code using 0.10.0 on mac/xcode, and I
get an error like this:
dailyrollingfileappender.h:23
error: forward declaration of ‘struct
log4cxx::rolling::RollingFileAppender’
I wind up doing a #include <log4cxx/rollingfileappender.h> in that
file, but then I get:
rollingfileappender.h:32
error: forward declaration of ‘struct
log4cxx::rolling::RollingFileAppender’
Which doing a #include <log4cxx/rollingfileappender.h> in that file
doesn’t help, since that IS that file…
What should I expect in terms of being able to create my own
appender under xcode?
-phil
Actually, there are two RollingFileAppenders,
log4cxx::RollingFileAppender which is analogous to
org.apache.log4j.RollingFileAppender in log4j 1.2.x and defined in
<log4cxx/rollingfileappender.h> and
log4cxx::rolling::RollingFileAppender which is defined in <log4cxx/
rolling/rollingfileappender.h> and is analogous to
org.apache.log4j.rolling.RollingFileAppender in the extras companion
for log4j.
Any extension or customization should be done using
log4cxx::rolling::RollingFileAppender. log4cxx::RollingFileAppender
and log4cxx::DailyRollingFileAppender are provided for backwards
compatibility and are just wrappers around
log4cxx::rolling::RollingFileAppenderSkeleton.
I'm not sure how you would get those messages with the current code
base. Any chance you are using a pre-0.10.0 snapshot?