RE: URGENT compliation error of sample program (test.cpp)

2008-06-13 Thread srkraju
Though its giving the same error. I downloaded Ant-1.6.5. and extracted into /home/facts/Test/apache-ant-1.6.5/ directory. g++ test.cpp -I/home/facts/Test/apache-log4cxx-0.10.0/src/main/include -L/home/facts/Test/apache-ant-1.6.5/lib/ Still its giving the same set of errors. test.cpp:(.

log4cxx tutorial

2008-06-13 Thread mercury linx
Hi Guys, when I first started using log4cxx about a year ago I was stun by its unavailable and limited sample usage, had to filter through the log4j documentations and test and trial to find out the proper behavior. (I'm a copy&paste-first-ask-question-later person ;) . I've put up a sample us

Re: Unable to display caller name in log info

2008-06-13 Thread Curt Arnold
On Jun 13, 2008, at 10:15 AM, Debarshi Sanyal wrote: Hi, I wrote a small Java program to configure an org.apache.log4j.Logger and log messages using it. Excerpts from the Java file are: package MyPackage; //... public class LogTest { private static Hashtable cLoggerHash = new Hashta

Re: URGENT compliation error of sample program (test.cpp)

2008-06-13 Thread Dale King
On Fri, Jun 13, 2008 at 9:59 AM, srkraju <[EMAIL PROTECTED]> wrote: > g++ > -I/home/facts/Test/apache-log4cxx-0.10.0/src/main/include/ test.cpp > > its giving the following error > > test.cpp:(.text+0x21): undefined reference to > `log4cxx::Logger::getLogger(char const*)'

URGENT compliation error of sample program (test.cpp)

2008-06-13 Thread srkraju
I am using Redhat Linux AS5, with g++ version 4.1.1 I compiled log4cxx0.10.0.tar.gz, apr-1.2.2, apr-util-1.2.2 Everything is successful. (configure, make, make check) When I run a sample program, with log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("com.foo