Re: bug in socket.h (and maybe many other kernel headerfiles)

Sean Hunter (sean@uncarved.co.uk)
Sat, 18 Sep 1999 07:56:07 +0100


On Fri, Sep 17, 1999 at 08:38:41PM +0200, Dipl.-Ing. Uwe Koloska wrote:
> On Fre, 17 Sep 1999 wrote the famous Sean Hunter:
> >On Fri, Sep 17, 1999 at 11:48:34AM +0200, Dipl.-Ing. Uwe Koloska wrote:
> >> Hello,
> >>
> >> I am not on this list but post by told so in REPORTING-BUGS.
> >>
> >> By installing kde-1.1.2 with gcc-2.95.1 I noticed a wrong declaration in
> >> /usr/incluce/linux/socket.h:109
> >>
> >> ANSI C++ forbids implicit conversion from `void *' in return
> >>
> >
> >Why are you compiling kernel headers with a c++ compiler? The kernel
> >headers don't work in c++.
>
> But what about C++ programms that need kernel functions and therefore have to
> include kernel headers???

If extern "C" {} isn't enough, they need to wrap the kernel functions.

Why do need linux/socket.h and not just socket.h?

Sean

-
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/