www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/21/05:32:37

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
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019