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"



On Jan 14, 2004, at 4:06 PM, email@hidden wrote:
To my question:
I have on an earlier occasion written code to handle exceptions using the
exc_server () call in a ProjectBuilder project - a command-line tool to
experiment with the "technology".
Having gotten the opportunity to try to build that project in Xcode, it
works just fine, even after having upgraded to native target.

But then I want to use this code in a newly created project in Xcode, in
order to build an application.
No matter what I have tried, the linker complains about exc_server () being
undefined.

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.

--Jim
_______________________________________________
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)



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.