Still I am unable to solve this make error. Please suggest any modifications
required in trivial.cpp

Can use the libraries(like log4cxx,apr-1.2.2, aprutil-1.2.2) which are built
in g++4.x  in 3.x .

 

 

thanks& regards

srkraju

  _____  

  _____  

From: srkraju [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 10:51 AM
To: 'log4cxx-user@logging.apache.org'
Subject: MAKE error : While compiling trivial.cpp

 

I am trying to build Log4cxx0.10.0, with apr-1.2.2, apr-util-1.2.2

Under Redhat Linux AS4. g++ version 3.4.3

./configure --with-apr=../apr-1.2.2/ --with-apr-util=../apr-util-1.2.2/ is
successful.

But when I try 'make' , then its giving the following error while compiling
trivial.cpp

Need urgent help.

 

 

make[3]: Entering directory
`/home/ramak/Logging/Log4cxx/apache-log4cxx-0.10.0/src/examples/cpp'

if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\"
-DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1  -I. -I. -I../../../src/main/include
-I../../../src/main/include  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE64_SOURCE  -I/home/ramak/Logging/Log4cxx/apr-1.2.2/include
-I/home/ramak/Logging/Log4cxx/apr-util-1.2.2/include   -g -O2 -MT trivial.o
-MD -MP -MF ".deps/trivial.Tpo" -c -o trivial.o trivial.cpp; \

then mv -f ".deps/trivial.Tpo" ".deps/trivial.Po"; else rm -f
".deps/trivial.Tpo"; exit 1; fi

trivial.cpp: In function `int main()':

trivial.cpp:39: error: `MessageBuffer' is not a member of `log4cxx::helpers'

trivial.cpp:39: error: expected `;' before "oss_"

trivial.cpp:39: error: `oss_' undeclared (first use this function)

trivial.cpp:39: error: (Each undeclared identifier is reported only once for
each function it appears in.)

trivial.cpp:40: error: `MessageBuffer' is not a member of `log4cxx::helpers'

trivial.cpp:40: error: expected `;' before "oss_"

trivial.cpp:41: error: `MessageBuffer' is not a member of `log4cxx::helpers'

trivial.cpp:41: error: expected `;' before "oss_"

trivial.cpp:42: error: `MessageBuffer' is not a member of `log4cxx::helpers'

trivial.cpp:42: error: expected `;' before "oss_"

trivial.cpp:43: error: `MessageBuffer' is not a member of `log4cxx::helpers'

trivial.cpp:43: error: expected `;' before "oss_"

make[3]: *** [trivial.o] Error 1

make[3]: Leaving directory
`/home/ramak/Logging/Log4cxx/apache-log4cxx-0.10.0/src/examples/cpp'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory
`/home/ramak/Logging/Log4cxx/apache-log4cxx-0.10.0/src/examples'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory
`/home/ramak/Logging/Log4cxx/apache-log4cxx-0.10.0/src'

make: *** [all-recursive] Error 1

 

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"

 


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"

Reply via email to