www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/01/17:16:25

From: sparhawk AT eunet DOT at (Gerhard Gruber)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Making Libraries
Date: Wed, 01 Jul 1998 21:07:37 GMT
Organization: Customer of EUnet Austria
Message-ID: <35a05cae.3179004@news.Austria.EU.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980701112930 DOT 12487S-100000 AT is>
NNTP-Posting-Host: e205.dynamic.vienna.at.eu.net
Mime-Version: 1.0
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Destination: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Wed, 1 Jul 1998 11:29:53 +0300 (IDT):

>On Tue, 30 Jun 1998, Plamen Petkov wrote:
>
>> My question is: What switches do I need to use to make a library,
>> instead of an executable?
>
>It's not a question of different switches, you need to use another
>program: `ar', instead of `ld' or `gcc'.
>
>Assuming that you have object files file1.o, file2.o and file3.o,
>here's how you put them into a library called libmyfiles.a:
>
>       ar rvs libmyfiles.a file1.o file2.o file3.o
>
>`ar' comes with documentation, type "info binutils ar" from the DOS
>prompt to read about ity.

Since DJGPP is aport from the unix compiler does it support shared libraries
under DOS as well? I guess not, but I have to ask anyway. Under Unix you
usually use a switch while compiling in order to create a shared library (not
that stupid DLL stuff) so I guess the compiler should be able to do it (like
older compilers created overlays).

--
Bye,
   Gerhard

email: sparhawk AT eunet DOT at
       g DOT gruber AT sis DOT co DOT at

Spelling corrections are appreciated.

- Raw text -


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