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 Sat, 14 Jun 2008 13:24:31 GMT
On Sat, Jun 14, 2008 at 2:51 AM, srkraju <ramaras@cmcltd.com> wrote:
> 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/

-L tells the linker where to look for libraries. You have to actually
specify what libraries to look for as well using the -l option.

So if your directory had libfoo.so in it that you needed to link with,
you would add -l foo to your command line.
-- 
Dale King

Mime
View raw message