From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: is libgpp.a automatically linked? Date: Fri, 18 Oct 1996 20:51:42 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 22 Message-ID: <3268504E.3E9F@cs.com> References: <5480kr$7f2 AT golden DOT ncw DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp104.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Daniel Arbuckle To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Daniel Arbuckle wrote: > > Does gcc automatically link libgpp.a with C++ programs? If so, how can I stop it? > Thanks Not unless you use the 'gxx' program to compile C++ instead of 'gcc'. To avoid using libgpp.a, you can manually specify the libraries to link using something like: "gcc ... -liostream". This will only link libiostream.a which does not fall under the GNU General Public License. -- John M. Aldrich * Anything that happens, happens. * Anything that, in happening, causes something else to happen, causes something else to happen. * Anything that, in happening, causes itself to happen again, happens again. * It doesn't necessarily do it in chronological order, though. --- Douglas Adams