lkml.org 
[lkml]   [1999]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: bug in socket.h (and maybe many other kernel headerfiles)
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/

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