www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/31/03:50:48

Message-ID: <39AE10A8.BA691E36@softhome.net>
Date: Thu, 31 Aug 2000 10:00:40 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: A few (seemingly) insignificant questions...
References: <pkjr5.2047$%f1 DOT 61422 AT news1 DOT news DOT adelphia DOT net>
Reply-To: djgpp AT delorie DOT com

JS wrote:
>  1. Does it make any difference whether allegro.h is included as "allegro.h"
> or <allegro.h>?
>      I figured that since I didn't write it, it should be included with
> brackets, rather than quotation marks. Though, I've seen examples using the
> contrary.

The simplest explanation is that if you say
#include <header.h>
then it will be searched among system headers, like stdio.h, and if you say
#include "header.h"
it will be searched in your current source file directory.
Of course, there are more details. Type "info cpp header 'include syntax'"
for them (without double quotes).

Laurynas

- Raw text -


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