Re: typedef and declaration of function
"Vu Pham" <vu@sivell.co m> wrote in message news:bu4b4v$do1 q2$1@ID-219297.news.uni-berlin.de...
[color=blue]
>
> I use c++ for the implementation file, but that function needs to be
> exported ( from an.so ) and I use extern "C" { } in the declaration file (
> .h ) to prevent the name mangling.[/color]
extern "C" doesn't change the language. Only the linkage. In C++ that's
a function with no arguments.
"Vu Pham" <vu@sivell.co m> wrote in message news:bu4b4v$do1 q2$1@ID-219297.news.uni-berlin.de...
[color=blue]
>
> I use c++ for the implementation file, but that function needs to be
> exported ( from an.so ) and I use extern "C" { } in the declaration file (
> .h ) to prevent the name mangling.[/color]
extern "C" doesn't change the language. Only the linkage. In C++ that's
a function with no arguments.
Comment