www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/10/14:46:50

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: #include doesn't work
Date: Fri, 10 Jul 1998 11:23:23 -0700
Organization: Alcyone Systems
Lines: 36
Message-ID: <35A65C1B.261C64F0@alcyone.com>
References: <199807101315 DOT PAA17384 AT d1o22 DOT telia DOT com>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Johan Henriksson wrote:

> My #include doesn't work. This is how I write:
> 
> #include <"jhe3dx.h">
> 
> but adding standardheaders work, like:
> 
> #include <"string.h">
> 
> The .C-file and the .H file are in the same directory. I have also
> tested
> to specify full path without reults. I have installed DJGPP v.2
> correctly
> according to djgppfaq.txt. Can anyone help me out?

You are using the wrong syntax.  Try either 

    #include "jhe3dx.h"

or

    #include <jhe3dx.h>

ANSI is dodgy on precisely what these mean (read:  "The named source
file is searched for in an implementation-defined manner" [6.8.2]), but
points out that a quoted search defaults to an angle-bracket search if
it fails.  So #include "..." is a superset of #include <...>.

-- 
         Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
                       Alcyone Systems / http://www.alcyone.com/max/
  San Jose, California, United States / icbm:+37.20.07/-121.53.38
                                     \
           I put away my nine, fool / 'cause I'm colorblind.
                                   / Ice Cube

- Raw text -


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