Newsgroups: comp.os.msdos.djgpp Subject: Re: Creating User Libraries From: vischne AT ibm DOT net-nospam (root) Organization: The Light References: <3422F186 DOT 76D2 AT geocities DOT com> <874753897snz AT genesis DOT demon DOT co DOT uk> <3423eb10 DOT 0 AT news3 DOT ibm DOT net> MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII NNTP-Posting-Host: 129.37.246.71 Message-ID: <34240fb8.0@news3.ibm.net> Date: 20 Sep 97 18:02:32 GMT Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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