Re: bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux