Yes, I see the same thing under cygwin
It does NOT happen on other platforms, on other platforms, the shared
libraries are produced as expected.

I use the following procedure to produce shared libraries under cygwin:
To use the shared libraries you have to add them to your PATH, and then
applications seems to work fine with log4cxx.

g++ -shared -o log4cxx.dll -Wl,--out-implib=liblog4cxx.dll.a
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive
liblog4cxx.a -Wl,--no-whole-archive '-L/usr/lib -lxml2 -lz -lpthread -liconv
-lm' -lxml2 -lz -lpthread -liconv -lm

(I have attached a file called doit to this email message in case the above
long line gets munged by email clients)

hope that helps

Jwahar Bammi
Memento, Inc.
[EMAIL PROTECTED]

-----Original Message-----
From: Maarten Boekhold [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 11:43 AM
To: Log4CXX User
Subject: Re: linking against static library of log4cxx


--- Maarten Boekhold <[EMAIL PROTECTED]> wrote:
> 
> --- Michael CATANZARITI <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > Does it work, if you use the dunamic log4cxx library (liblog4cxx.so)
under
> > cygwin ?
> 
> I assume it would, but I haven't tested this. I have no need for a dynamic

Hmmm, fresh CVS checkout, on cygwin no dynamic library is build at all!

./autogen.sh
./configure
make
ls src/.libs

This does not show any shared library. 'make install' doesn't produce any
either...

Is this a bug? Does the same happen on other platforms? Is it possible at
all
to link an executable statically against log4cxx (specifically on cygwin)?

Maarten


        
                
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Attachment: doit
Description: Binary data

Reply via email to