[lkml]   [1999]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux headers and C++

-----Original Message-----
From: Jamie Lokier <>
To: Jes Sorensen <>
Cc: <>
Date: Monday, July 05, 1999 11:07 AM
Subject: Re: linux headers and C++

>> Jamie> I don't see why it should be ruled out, as it's only a matter
>> Jamie> of tidying up. C++ modules can be useful from time to time.
>Jes Sorensen wrote:
>> There is no reason to even try to compile kernel modules with C++
>> since it only makes sense to use the features offered by a C compiler
>> within the kernel.
>> The kernel is written in C, there is no reason to pollute drivers and
>> other parts of the kernel with restrictions to make it C++ compatible.
>I don't mean drivers or any other part of the kernel.
>I mean third-party code written to run in kernel space, in C++.
>It's possible to make much use of C++ in this area.
>You might not like to use it, but that's not a good reason to prevent it.
>If significant support was required I would suggest forgetting the idea.
>But I believe the changes are minor, easily understood cleanups, so I
>see no reason to rule it out.
>-- Jamie
I may be dense but why noy write your code in c++ run it thorugh the
preprocessor to convert to c then compile with gcc. Do this by hand so that g++
won't disable the c functionality.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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