Re: exc_server "disappearing"
Re: exc_server "disappearing"
- Subject: Re: exc_server "disappearing"
- From: email@hidden
- Date: Thu, 15 Jan 2004 01:57:57 +0200
Quoting Jim Magee <email@hidden>:
>
Are you writing your code in C++? If so, your code is probably looking
>
for the "mangled name" for the exc_server() routine. Within Xcode, the
>
warning messages have the mangling removed as well, so you don't really
>
see that you are looking for a mangled name.
>
>
There is no published header for the server side of Mach exceptions.
>
So you have to generate your own. In it, you have to make sure the
>
prototype for it is declared "extern C {...}". If you use MIG to
>
generate the server header from the exc.defs file, it will be declared
>
that way by default.
Thanks a lot for the swift reply !
Actually, I the code calling exc_sever was written in Objective-C, but in my
larger program, I combined it with C++ code and compiled it as Objective-
C++, thus being unable to link properly.
A very quick fix to this problem is as follows:
extern "C" {
#import "exc_server.h"
/* exception_raise.h defines exception_raise, exception_raise_state and
exception_raise_state_identity */
#import "exception_raise.h"
}
Thanks again ! :-)
Ivan A Krizsan
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.