www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/21/20:47:32

From: "DeHackEd" <Not DOT given AT out>
References: <353c14e5 DOT 0 AT lightning DOT ica DOT net>
Subject: Re: Header files
Date: Tue, 21 Apr 1998 18:28:36 -0400
Lines: 24
Message-ID: <eQ6BcRYb9GA.161@uppubnews03>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

If you want a specific program that includes the .h file, put it in the current
directory and include it like this:

#include "filename.h" // as opposed to
#include <filename.h>

If you want many programs to access it, there are a few things you can do...

1) Put them in djgpp\include as you did.
2) For the sake of clarity, try to put them in djgpp\include\mine or something.
Just to tell them apart from the rest...
3) Use the command: gcc file.c -Ic:\my\includes
   That's a capital I (i, eye) and no space between the I and the direcotory.
4) If you're feeling lucky, add your a path to the DJGPP.ENV file. Mind you,
this may be pushing it, and you may want to keep a backup in case something goes
wrong.

--
"DeHackEd"

EMail address not given out due to low-life spammers.



n normal human body fluids
 opens up interesting moral and legal questions.
 Since DMT is illegal, as is 'any substance, compound
 or mixture' containing DMT, it would seem that we
 are all guilty of possesion of a controlled substance"
 -Jonathon Ott

 My weird, trippy page:
 http://www.geocities.com/SunsetStrip/Alley/3450/index.html

- Raw text -


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