mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Using DLLs instead of static libraries?


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] Using DLLs instead of static libraries?
Date: Sun, 28 Feb 2010 20:45:26 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

To: address@hidden
Date: Sun, 28 Feb 2010 16:02:37 +0100
Subject: [Mingw-cross-env-list] Using DLLs instead of static libraries?
Reply-To: address@hidden
List-Id: mingw-cross-env-list.nongnu.org

Marcel Wysocki <address@hidden> schrieb:
> >There is no central switch for shared instead of static. You have to
> >modify the makefiles.
> >   
> that might not be a bad idea after all. a central switch like an ENV var
> or some config file.

This is a recurring question. Please have a look at the discussion
thread starting at:

http://lists.gnu.org/archive/html/mingw-cross-env-list/2009-09/msg00025.html

Feel free to restart the discussion, but please consider reading
what has already been said, and elaborating on the arguments which
have already been stated in that thread.

In particular, we'd need much more than just a "central switch" in
order to enable shared libraries, with doubtful benefits.


Joost Kraaijeveld <address@hidden> wrote:
> [...] I would really like to use DLLs instead: I have a set of
> rather large libraries with a lot of test programs that all link
> to (most) Boost and (all) wxWidgets libraries and it is eating
> my disks.

In that case I'd recommend to build one big application DLL
files into which the application and all dependency libs are
statically linked. Then, create small EXE files which are
dynamically linked against that one DLL. This is cleaner and
less hassle than using many small DLL files.

Alternatively, consider using the existing official DLL files
provided with almost all libraries, instead of building your
own DLL files.

Please have a look at the mailing list entry mentioned above
for more information about these possibilities. If there's
anything unclear (or even wrong), don't hesitate to ask.


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




reply via email to

[Prev in Thread] Current Thread [Next in Thread]