Mail Archives: djgpp/1997/02/13/22:37:53
abacon AT videotron DOT ca wrote:
>
> Hi, I am new to DJGPP and I have read the FAQ files, but there is
> something that I have not yet figured out... How do I create a library
> from a pool of object files. I have read somthing about the AR command
> but it says that it does not know the format of my object file. Have I
> missed something ( surely :-) )
This is the proper syntax to use 'ar':
ar rvs libmylib.a file1.o file2.o file3.o ...
This creates 'libmylib.a' and puts the indicated object files into it.
'ar' only recognizes DJGPP-compiled object code, however, so you can't
just take Borland object code and expect it to work in DJGPP. For full
information on converting 16-bit code to DJGPP, read chapters 17 and 18
of the FAQ (v2/faq210b.zip).
--
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------
- Raw text -