Re: error on <execinfo.h>
Re: error on <execinfo.h>
- Subject: Re: error on <execinfo.h>
- From: Arnab Ganguly <email@hidden>
- Date: Wed, 28 Jan 2009 19:05:11 +0530
Issue is with the existing implementation of my application I am not able to get the stack trace properly related to my application. May be there is some issue with the implementation so thought of using the functions backtrace.
Of course there are requirements for supporting the same on older versions also, hence if I migrate to 10.5.5 I need to support backward compatibility as well.
Thanks
Arnab
On Wed, Jan 28, 2009 at 6:48 PM, Ken Thomases
<email@hidden> wrote:
On Jan 28, 2009, at 6:57 AM, Arnab Ganguly wrote:
My OS version is 10.5.5 and Xcode is 3.1 and SDK is 10.4.So what would be work around? I need to call the backtrace and backtrace_symbols functions in my code.
Are you compiling against the 10.4 SDK on purpose? If so, why? A good reason is that you plan to deploy your program on Tiger and don't want to use 10.5-or-later features. However, you say you _do_ want to use 10.5-or-later features.
If you don't need to deploy on Tiger or earlier, then you should just set your SDK and deployment target to 10.5.
If you do need to deploy on Tiger or earlier, then you're doing what Apple calls cross-development:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/
This is a subject which takes some care. It also will not magically allow you to use backtrace and backtrace_symbols on Tiger. That API is simply not available on Tiger. The best you can achieve is the ability to run your program on Tiger, while avoiding the use of post-Tiger features when running on Tiger.
Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden