This is how I produce a dll on cygwin (if anyone knows a better way, please let us know)
Let the normal make process compile you the .a file Then issue the following command 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 tiny shell file to this message with the above line, as no doubt all mailers will totally mangle such a long line) This will produce the .dll When you run any executable linked against the .dll, make sure you have the .dll in your $PATH Cheers, Jwahar Bammi Memento, Inc. [EMAIL PROTECTED] -----Original Message----- From: Tom Quarendon [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 8:39 AM To: [email protected] Subject: How to link with log4cxx dll? I'm using log4cxx compiled using cygwin gcc on Windows XP, and was wonderdering if it is possible to link to a DLL version of log4cxx. All I seem to have is a liblog4cxx.a which appears to be a static library. Since I'm going to be compiling lots of DLLs to make up my program I'm going to need a DLL version of log4cxx. Is this an easy thing to do? Many thanks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
doit
Description: Binary data
