delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/20/13:34:51

From: yin tan cui <z2191317 AT student DOT unsw DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: how to include my own library?
Date: Sat, 14 Jun 1997 22:06:13 +1100
Organization: UNSW
Lines: 22
Message-ID: <33A27B25.652D@student.unsw.edu.au>
Reply-To: z2191317 AT student DOT unsw DOT edu DOT au
NNTP-Posting-Host: 129.94.15.23
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

recently I have wrote an ADT library( about 15 files ) for myself. I
compiled it and 
got "libadt.a" placed into djgpp\lib. and I have placed all the library
files into a 
directory called "adtlib" inside the directory djgpp\include.

the problem is that every time I need to include these files, I have
to do
	#include "c:\djgpp\include\adtlib\adtlib.h"

Is there a way so that I can just do
	#include "adtlib.h"
to get the job done.

I can do this in my linux mechine by putting these lib files into
	/usr/local/include/

I think I need to edit the file "djgpp.env", but I'm not sure EXACTLY
what to do? can anyone tell me what I should do or there is no way of
achieving this.

thanks.

- Raw text -


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