logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael CATANZARITI <mca...@free.fr>
Subject Re: linking against static library of log4cxx
Date Tue, 03 Aug 2004 10:54:55 GMT
Hello Maarten,

You should search for "Solaris" in the log4cxx-user mailing list archive.
I think there are different problems with the log4cxx static version : Somme
static variables of log4cxx (concerning levels) are not initialized before the
main function is invoked. It may cause severe problems. These problems are not
yet fixed (we have not found a simple solution for the moment)


Selon Maarten Boekhold <boekhold@yahoo.com>:

> --- Michaël_CATANZARITI <mcatan@apache.org> wrote:
> > g++ -o sample sample.cpp -Wl,--whole-archive,-llog4cxx,--no-whole-archive
> > -llibxml2
> Brilliant, that does it! Thanks Michael.
> I'm not sure yet, but I suspect that eventually this program will be compiled
> under Solaris with SUNWspro. Are you aware of a similar trick for
> SUNWspro/Forte that links in the entire archive statically?
> Maarten
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo

View raw message