Re: Object Oriented Linux

From: Erik Andersen (andersen@codepoet.org)
Date: Tue Jul 11 2000 - 11:31:03 EST


On Tue Jul 11, 2000 at 11:55:50AM +0300, Sherif Abou Seda wrote:
> i'm trying to change the module of Inter Process Comunication in the Linux
> Kernel from Stuctured Programming into Object Oriented Programming but when
> i tried to compile the kernel with my code in it, i had some problems in
> integrate the kernel which contain both C and C++ code in it
> can anyone help me about this

you must use

#ifdef __cplusplus
extern "C" {
#endif
        // C++ headers
}

to define all C++ function prototypes to avoid c++
name mangling,

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--

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



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:13 EST