www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/26/17:48:14

From: "Simon Sulser" <simonsulser AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pointers and Arrays (Newbie)
Date: Mon, 26 Jun 2000 23:01:51 +0200
Organization: Usenet provided by sunrise communications ag
Lines: 13
Message-ID: <8j8gfd$bh$1@news1.sunrise.ch>
References: <39535e20 AT news DOT telinco DOT net> <8ivoqt$imj$1 AT news1 DOT sunrise DOT ch> <395717d8$1 AT news DOT telinco DOT net>
NNTP-Posting-Host: pop-zh-12-2-dialup-73.freesurf.ch
X-Trace: news1.sunrise.ch 962053421 369 194.230.199.73 (26 Jun 2000 21:03:41 GMT)
X-Complaints-To: usenet AT sunrise DOT ch
NNTP-Posting-Date: 26 Jun 2000 21:03:41 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

The compiler doesn't make any differences between header or cpp files. But
the precompiler does. It interpretes the #include statement like this: take
the header file and the cpp file including the header and make it like one
"big" file which is to be passed to the compiler, which then just translates
c/c++ to object code.

Well that might not be a 100% detailed explanation, but basically that's the
reason why you still can have definition in header files.

Simon



- Raw text -


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