logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "srkraju" <rama...@cmcltd.com>
Subject MESSAGEBUFFER.H COMPILATION PROBELM
Date Wed, 11 Jun 2008 11:46:08 GMT
While trying to compiling the sample program im getting the following error
message

(USING LOG4CXX_0.10.0, G++ VERSION 2.96,  REDHAT LINUX VERSION AS3)

 

In file included from
/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/lo
gger.h:32,

                 from bar.h:2,

                 from bar.cpp:1:

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:30: syntax

error before `&'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:80: `ios_base_manip'

was not declared in this scope

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:80: parse

error before `)'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:80: `log4cxx::helpers::CharMessageBuffer::operator<<

(...)' must take exactly one argument

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:146: parse

error before `<'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:146: syntax

error before `<'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:153: `::basic_ostream'

undeclared (first use here)

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:153: parse

error before `>'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:185: syntax

error before `*'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: syntax

error before `&'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: `CharMessageBuffer'

was not declared in this scope

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: `os'

was not declared in this scope

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: parse

error before `&'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: ISO

C++ forbids declaration of `operator<<' with no type

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: `log4cxx::helpers::operator<<

(...)' must have an argument of class or enumerated type

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:189: `log4cxx::helpers::operator<<

(...)' must take exactly two arguments

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h: In 

function `int &log4cxx::helpers::operator<< (...)':

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:190: parse

error before `>'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:190: `val'

undeclared (first use this function)

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:190: (Each

undeclared identifier is reported only once for each function it appears
in.)

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h: At 

top level:

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:822: syntax

error before `;'

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/he
lpers/messagebuffer.h:823: syntax

error before `;'

In file included from bar.h:2,

                 from bar.cpp:1:

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/lo
gger.h:44: `LoggerRepository'

was not declared in this scope

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/lo
gger.h:44: template 

argument 1 is invalid

/home/srkraju/Test/Log4Cxx/apache-log4cxx-0.10.0/src/main/include/log4cxx/lo
gger.h:44: confused by 

earlier errors, bailing out

 

thanks& regards

srkraju

 


DISCLAIMER

“The information contained in this e-mail message and/or attachments to it may contain confidential
or privileged information. If you are not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the information contained in this e-mail message
and/or attachments to it are strictly prohibited. If you have received this communication
in error, please notify us by reply e-mail or telephone and immediately and permanently delete
the message and any attachments. Thank you"
Mime
View raw message