lkml.org 
[lkml]   [1999]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bug in socket.h (and maybe many other kernel headerfiles)
On Sat, 18 Sep 1999, Sean Hunter wrote:

...
> ...will compile in gcc but not g++ IIRC. Now strictly in ansi c the
> above should not be allowed as a statement label (which "case 'd':"
> is) has to attach to a statement (which there isn't one in this case).

Yes, and almost none of the kernel headers that have inline code should be
pulled in by libc5. Those that are required (like socket.h) should have
the code #if'd out.

> This is why (regardless of libc), the kernel headers should not be
> compiled by a c++ compiler.

If that's the case, please explain how I use the C library from C++ on
libc5 systems? There are commercial apps that require this -- libc5 is
not dead yet!

-ben


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.612 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site