From: fredex AT fcshome DOT stoneham DOT ma DOT us Message-Id: <199606270539.BAA00821@fcshome.stoneham.ma.us> Subject: Re: Libraries To: platko AT ix DOT netcom DOT com (Bob Platko) Date: Thu, 27 Jun 1996 01:39:55 -0400 (EDT) Cc: djgpp AT delorie DOT com In-Reply-To: <31D2093E.72AA@ix.netcom.com> from "Bob Platko" at Jun 27, 96 00:08:30 am Content-Type: text Content-Length: 1209 Thinking furiously, Bob Platko wrote: > > Does anyone know how to make a libray using DJGPP? Remember that these are Unix tools, so they have (from the point of view of a DOS/Windows programmer) funny names. Under Unix a library is called an 'archive', and the tool that manipulates them is called 'ar', appropriately. Check in the info program (you did install info when you installed DJGPP, didn't you?) for the docs on ar. In brief, though, you can make an ar archive (off the top o'me head here, so please 'scuse me if I pull a boner), given files a.o, b.o and c.o, you could do something like: ar -rv libmy.a a.o b.o c.o then when you want to compile programs that use that lib, you would do: gcc prog.c -lmy -- ------------------------------------------------------------------------------- .---- Fred Smith / Office: fred AT computrition DOT com ( /__ ,__. __ __ / __ : / 508-663-2524 / / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us / / (__ (___ (__(_ (___ / :__ 617-438-5471 -------------------------------- Jude 1:24,25 ---------------------------------