From: Ian Chapman Newsgroups: comp.os.msdos.djgpp,sparhawk AT eunet DOT at Subject: Re: Linking just the necessary parts of a library Date: Mon, 13 Jul 1998 13:16:52 -0400 Organization: Bell Northern Research Lines: 26 Message-ID: <35AA4104.ED0C4A93@nt.com> References: <6o4k4g$7q8 AT news DOT uni-leipzig DOT de> NNTP-Posting-Host: bcarib90.bnr.ca Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit Precedence: bulk Hi Gerard, I think that Raul is under the false impression that his .exe is big because all the lib is in it. That is he is only using the cosine from the libmath.a so how does he get rid of arctan, log, sqrt, etc! Raul, the libxxx.a files are an archive of a pile of .o files that is log.o, cos.o, sine.o sqrt.o all zipped into an archive a bit like pkzip. The linker only pulls out what it needs to make your .exe work. Regards Ian. Raul Kompaß wrote: > > Hello out there, > > Is there a linker, that is capable of extracting just the functions > i need out of, say liballg.a ? Or another simple means to achieve this > without the need to extract the necessary source code? > > Raul