Date: Mon, 23 Jun 1997 11:56:04 -0400 (EDT) From: "Art S. Kagel" To: yin tan cui Cc: djgpp AT delorie DOT com Subject: Re: how to include my own library? In-Reply-To: <33A27B25.652D@student.unsw.edu.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sat, 14 Jun 1997, yin tan cui wrote: > 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" Well if your only problem is th include file try: gcc ...... -Ic:/djgpp/include/adtlib Then just: #include "adtlib.h" I believe that you can add 'c:/djgpp/include/adtlib' to the C_INCLUDE_PATH and/or the CPLUS_INCLUDE_PATH environment variables in the djgpp.env file to accomplish the same thing permanently so you do not need the -I options for every compile. In djgpp.env you djgpp root directory (c:/djgpp) is represented as "%DJDIR% so you would append: ;%DJDIR%/include/adtlib to the existing entries. Art S. Kagel, kagel AT bloomberg DOT com