logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale King" <dalewk...@gmail.com>
Subject Re: URGENT compliation error of sample program (test.cpp)
Date Fri, 13 Jun 2008 14:26:06 GMT
On Fri, Jun 13, 2008 at 9:59 AM, srkraju <ramaras@cmcltd.com> 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*)'

That is a link error, not a compile error. The command line you show
says to compile and link, but you didn't specify ant libraries to link
against so it is not linking against log4cxx.

-- 
Dale King

Mime
View raw message