Mail Archives: djgpp/1998/07/01/13:30:37
Plamen Petkov (pbpetkov AT iname DOT com) wrote:
: Hi,
: I am realtively new to djgpp and I have simple problem. I need to create
: a (static) library, i.e. libgame.a.
: My question is: What switches do I need to use to make a library,
: instead of an executable?
: Thank you for your help.
: -Aleko
cc -c foo.c bar.c
ar rv foobar.a foo.o bar.o
compiles two .c files and stuffs the resulting .o files into a library
(.a file).
Fred
--
---- Fred Smith -- fredex AT fcshome DOT stoneham DOT ma DOT us -----------------------------
"For the word of God is living and active. Sharper than any double-edged
sword, it penetrates even to dividing soul and spirit, joints and marrow;
it judges the thoughts and attitudes of the heart."
---------------------------- Hebrews 4:12 (niv) ------------------------------
- Raw text -