Mail Archives: djgpp/1997/09/21/05:32:37
In article <3423eb10 DOT 0 AT news3 DOT ibm DOT net>, vischne AT ibm DOT net-nospam says...
>
>In article <874753897snz AT genesis DOT demon DOT co DOT uk>, fred AT genesis DOT demon DOT co DOT uk
>>>
>>>I have a question for you guys. Ok, I have a couple of math functions
>>>that I've
>>>created with DJGPP's C/C++ V2 compiler. And now, I would like to know
>>>the steps
>>>that I need to take to turn all these functions (about 45) in a
>>>library?
>>
>>>
>gcc -o lib.a xx1.o xx2.o ... xxN.o
>ranlib lib.a
>
>Ought to do it.
Correction: Here is a makefile fragment, and its translation:
$(OBJDIR_NORMAL_LIB): $(OBJDIR) $(OBJS)
-$(RM) $(OBJDIR_NORMAL_LIB)
cd $(OBJDIR); $(AR_CR) $(NORMAL_LIB) $(OFILES)
(Notice that the second and third lines begin with tabs.)
This translates into:
ar lib.a xx1.o xx2.o .... xxN.o
ranlib lib.a
- Raw text -