delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/23/12:05:39

Date: Mon, 23 Jun 1997 11:56:04 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: yin tan cui <z2191317 AT student DOT unsw DOT edu DOT au>
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: <Pine.D-G.3.91.970623114919.25588B-100000@dg1>
Mime-Version: 1.0

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


- Raw text -


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