On Jan 14, 2004, at 4:06 PM, keinmensch@inbox.lv 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 | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Jim Magee