delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/02/22:30:34

From: Goh Yong Kwang <s6606555 AT mercury DOT np DOT ac DOT sg>
Newsgroups: comp.os.msdos.djgpp
Subject: How to create a library?
Date: Mon, 3 Aug 1998 09:57:16 +0800
Organization: Ngee Ann Polytechnic, Singapore
Lines: 18
Message-ID: <Pine.SOL.3.91.980803095118.23337B-100000@mercury>
NNTP-Posting-Host: mercury.np.ac.sg
Mime-Version: 1.0
NNTP-Posting-User: s6606555
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to create a library but is not quite sure how to do it.

I think that the first step would be to compile all the c/c++ file into 
object file (.o). Then from there, use the ar utility with the -r switch 
to add all the .o files to the library. Then copy the library archive 
(.a) to djgpp/lib directory. (This is the easiest step. Otherwise I'll 
have to fiddle with the djgpp.env file to tell djgpp where to look for my 
library).

Is the procedure correct? Please correct me if I'm wrong.

----------------------------------
Many regards,
Goh Yong Kwang
96606555
3K
----------------------------------

- Raw text -


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