Mail Archives: djgpp/1997/06/17/02:53:12
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 -