Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exc_server "disappearing"



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.

References: 
 >exc_server "disappearing" (From: email@hidden)
 >Re: exc_server "disappearing" (From: Jim Magee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.