On 18 Nov 2005 03:58:19 -0800, "Neelesh Bodas"
<> wrote in comp.lang.c++:
> nrhayyal wrote:
> > why is it that :
> > if we include "/usr/include/sqlca.h" twice in our program doesnt throw
> > any error message,
> > where as if we include "myproject/src/include/sqlca.h" throws error.
> > how the compiler interpretes header files of standard header and normal
> > headers.
>
> Typically the header files have "guards" like this :
>
> #ifndef _THIS_FILE_IS_INCLUDED_
> #define _THIS_FILE_IS_INCLUDED_
Typically you do not, if you know proper programming in C++. It is
illegal for you to define a symbol like this in your code -- all
identifiers beginning with an underscore followed by an upper case
letter, or containing two consecutive underscores anywhere within
them, are reserved for the implementation in all contexts.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html