patches for Sun Forte 7/8 compilers

Michael Matz matz at kde.org
Mon Nov 3 22:46:11 GMT 2003


Hi,

On Mon, 3 Nov 2003, Oswald Buddenhagen wrote:

> > signal handlers have to use "C" linkage.
> >
> huh,

Huh?  Why huh?

> why that? i thought anything that does not expect a 'this' would be ok?

Why do you think that?  The C and C++ ABI for non-member functions might
very well be different.  That's the reason you can only call 'extern "C"'
functions from C code (_not_ the mangling which is no concept ISO C++
knows about).  Same goes for signal handlers.  From 18.7/5:

... All signal handlers shall have C linkage. ...


Ciao,
Michael.





More information about the kde-core-devel mailing list