|
|
Sponsor |
RE: How to link with log4cxx dll?: msg#00040apache.logging.log4cxx.user
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. bammi@xxxxxxxxxxxxxxx -----Original Message----- From: Tom Quarendon [mailto:tomq@xxxxxxxxxxxxx] Sent: Thursday, August 26, 2004 8:39 AM To: log4cxx-user@xxxxxxxxxxxxxxxxxx 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: The logging macros, FabijanicA |
|---|---|
| Next by Date: | Re: The logging macros, drkm |
| Previous by Thread: | How to link with log4cxx dll?, Tom Quarendon |
| Next by Thread: | build error directory name with spaces, Justin Matthews |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|