delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/17/02:53:12

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to include my own library?
Date: Mon, 16 Jun 1997 07:09:37 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 37
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <33A51EF1.6431@cornell.edu>
References: <33A27B25 DOT 652D AT student DOT unsw DOT edu DOT au>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0011.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

yin tan cui wrote:
> 
> 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 

you link libraries and include headers by the way.

> 
> 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.
> 

you need to add %DJDIR%/include/adtlib to your C and C++ include paths.
then you can use the headers with

#include <adtlib.h>  ... note the angle brackets

btw, if you already have libadt.a in djgpp\lib, then why not just dump
adtlib.h in djgpp\include? i personally prefer keeping add-ons and
standard distributions separate but once you start mixing, don't make it
too hard on yourself.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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