From: Goh Yong Kwang 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: NNTP-Posting-Host: mercury.np.ac.sg Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII NNTP-Posting-User: s6606555 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 ----------------------------------