Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Brett Porter , djgpp AT delorie DOT com Date: Mon, 27 Oct 1997 15:05:13 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: DJGPP linker: a definitive answer wanted Precedence: bulk Brett Porter wrote: > So I would like a definitive answer from someone who knows 100% that it is > the truth, the whole truth and nothing but the truth (so help me God). The only true are in the facts. So test and see ;-) > I am writing two programs simultaneously that share some classes, so I link > the files with just those classes to both. Some of the functions in these > classes are used in both programs, some only in one (ok, maybe this isn't an > example of great design, but I'm not a C++ purist, so I don't really care) > > Now, will _all_ of the functions be linked into _both_ of the programs, or > only the ones used? If they all are, is there a way of making sure only the > used ones are linked (eg conditional defines, or only good > programming design) Split the members in separated files and look in the map. I think the unused member won't be included. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013