This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: STL headers problem
- To: EGCS Developers <egcs at cygnus dot com>
- Subject: Re: STL headers problem
- From: Jean-Pierre Radley <jpr at jpr dot com>
- Date: Wed, 22 Jul 1998 16:29:55 -0400
- References: <35B5FBA7.8F3C16D2@mtsa.com>
Jordi de Antonio bruited (on 22Jul):
| What's the difference between header files whit '.h' and without (p.e.
| <vector.h> and <vector>). I've always used '.h' one's, but now I'm
| having troube while porting the system to Visual C++ that doesn't have
| '.h' versions. I would like to know the difference before start to do
| changes.
A header file is a plain ascii file, designed to be included at the
head, or beginning, of some other file. You can call it header,
header.h, h.header, header.jordi, or whatever makes you happy.
The .h is merely a convention, it has no actual syntactic meaning.
OTOH, I have never seen a header file that did not have a .h extension,
nor seen a file.h that was anything other than a header file.
Especially not when using the <file.h> notation, which tells any compiler
to find file.h in /usr/include. In /usr/include I see only .h files, or
subdirectories with .h files.
--
Jean-Pierre Radley <jpr@jpr.com> XC/XT Custodian Sysop, CompuServe SCOForum