| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| From: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
| 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: | <Xns92067651DAF8Aadminraf256com AT 213 DOT 180 DOT 128 DOT 20> |
| NNTP-Posting-Host: | modem-78.alaska.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| 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/ ]
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |