delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/25/23:32:46

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Shared libraries
Date: Sun, 25 May 1997 12:10:24 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 37
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33886470.134@cornell.edu>
References: <5m95fd$n89 AT news DOT asu DOT edu>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0096.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

leereyno AT imap2 DOT asu DOT edu wrote:
> 
> Djgpp currently has no support for shared libraries the way the Unix
> versions of GCC do.  Shared libraries are a great thing!  The final
> executable code is smaller because the library isn't included in the
> program itself, it's in a separate file which gets loaded at run time.
> This can really add up when you have even a few compiled programs 
> sitting on your drive.

having shared libraries can add to the size of your distribution if you
want whatever you wrote to run on other people's machines (DOS and Linux
worlds are different in that you cannot count on everyone having djgpp
and all the libraries associated with it.) from that perspective, it
makes sense to have to distribute a program statically linked with the
objects that are needed than to have to distribute libc.a every time you
want your programs to reach "the general public".

that said, if you would like to add shared library support to djgpp, you
are definitely welcome.

> libraries to a dos compiler.  I figure that if windows can be created 
> to use shared libraries (.DLL) then other protected mode programs 
> should be able to as well.

don't you feel a bit frustrated when this or that 1 mb zip file you
downloaded contains a 902K mfc40.dll? 
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019