X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: library Date: Mon, 06 May 2002 11:01:52 +0100 Lines: 21 Message-ID: <3CD65490.E97CA435@phekda.freeserve.co.uk> References: NNTP-Posting-Host: modem-78.alaska.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news7.svr.pol.co.uk 1020680963 27457 62.137.53.78 (6 May 2002 10:29:23 GMT) NNTP-Posting-Date: 6 May 2002 10:29:23 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: de,fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. Rafal 'Raf256' Maj wrote: [snip] > Can someone give my example of linecommand that will compile a.cpp b.cpp > c.cpp into single mylib.a ? Compile the C++ files as usual, e.g.: g++ -g -Wall -c a.cpp ... g++ -g -Wall -c c.cpp Then create the library: ar crs mylib.a a.o b.o c.o Hope that helps, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]