iPhone Open Application Development
iPhone Open Application Development Write Native Objective-C Applications for the iPhone

By Jonathan A. Zdziarski
Book Price: $39.99 USD
£24.99 GBP
PDF Price: $31.99

Cover | Table of Contents | Forum | Colophon


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Low Level Exception Handling - Missing Symbols
bobatstyletap
post May 8 2008, 11:51 PM
Post #1


New Member
*

Group: Members
Posts: 4
Joined: 8-May 08
Member No.: 277



I'm trying to install a low level exception handler using NewExceptionHandlerUPP and InstallExceptionHandler defined in CarbonCore/MachineExceptions.h.

It compiles fine, but can't find either of the two symbols when linking. If I try to add the framework CarbonCore, it can't find that either.

I'm using the unofficial SDK.

Your help would be much appreciated. BTW, the book has been really helpful.
Go to the top of the page
 
+Quote Post
jzdziarski
post May 9 2008, 03:28 AM
Post #2


Active Member
**

Group: Members
Posts: 25
Joined: 1-April 08
Member No.: 187



What are the missing symbols? Can you paste the compiler output?

You can 'nm' the various frameworks to try and locate them; it's possible they may not have gotten built into the iPhone build of Leopard. But if you can give me specific symbol names, I can help look.
Go to the top of the page
 
+Quote Post
bobatstyletap
post May 15 2008, 11:54 PM
Post #3


New Member
*

Group: Members
Posts: 4
Joined: 8-May 08
Member No.: 277



QUOTE (jzdziarski @ May 8 2008, 11:28 PM) *
What are the missing symbols? Can you paste the compiler output?

You can 'nm' the various frameworks to try and locate them; it's possible they may not have gotten built into the iPhone build of Leopard. But if you can give me specific symbol names, I can help look.

Thanks for your help.

Here's the relevant output from the link step:

usr/local/bin/arm-apple-darwin-ld: Undefined symbols:
_InstallExceptionHandler
_NewExceptionHandlerUPP
collect2: ld returned 1 exit status

These are calls defined in CarbonCore/MachineExceptions.h.
Go to the top of the page
 
+Quote Post
jzdziarski
post May 16 2008, 12:47 PM
Post #4


Active Member
**

Group: Members
Posts: 25
Joined: 1-April 08
Member No.: 187



I don't see these symbols in any framework or library. My guess is Apple either didn't include them, or intentionally renamed them.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 25th July 2008 - 06:27 AM