lkml.org 
[lkml]   [1999]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectlinux headers and C++
Date
From
I'm trying to build a kernel module in C++. This code includes some of
the linux kernel header files, and unfortunately does not compile with
recent versions of the kernel. The code is not my own - I have
inherited it from someone else - but I am assured that it used to
compile.

The error I get has to do with include/linux/signal.h under the kernel
source tree: the functions siginitset and siginitsetinv both contain
switch statements which are invalid C++ syntax (and in fact, are
invalid in C, but which make use of a gcc extension). Specifically,
the last label ("case 1:") in these statements should be followed by a
semicolon.

I have just subscribed to the linux-kernel mailing list, but I am not
sure I will get your responses, so please cc any discussion of this to
my address.

Thanks,

Ronnie Misra rgmisra@mit.edu
3 Ames Street, Box 152
Cambridge, MA 02142
(617) 225-6365

-
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:52    [W:0.065 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site