This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: bug?
- From: John Love-Jensen <eljay at adobe dot com>
- To: skaller <skaller at users dot sourceforge dot net>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Mon, 22 Oct 2007 06:05:39 -0500
- Subject: Re: bug?
Hi skaller,
> This looks like a bug:
Definitely a bug!
It's a bug to use C <x.h> headers in C++ code. C++ code should use the C++
<x> headers.
> Can anyone see any way this could happen (C++ code,
> using both <x.h> and <x> in various places).
Yes, I can see how that could happen.
C++ code should not use <x.h>, since those are C header files.
Mixing C <x.h> header files in C++ programs can incur all sorts of
interesting subtle side effects.
Use C <x.h> headers for C code.
Use C++ <x> headers for C++ code.
HTH,
--Eljay