Re: Problem while loading libraries
Re: Problem while loading libraries
- Subject: Re: Problem while loading libraries
- From: Nathan Sims <email@hidden>
- Date: Wed, 15 Jun 2011 09:48:25 -0700
On Jun 15, 2011, at 4:30 AM, nithesh salian wrote: I am facing a problem while running my application. Its throwing the following error message when it tries loading one of the library.
Library not loaded:
Reason: no suitable image found.
unknown file type, first eight bytes:
My application is compiled with sdk 10.5 whereas the library is compiled with sdk 10.6. Could this be the problem? Am i missing something here.
What architecture are you building on? What architectures are you building for? What architectures are in the library you're trying to link?
I had a similar problem a while back and it was because the library I was linking in didn't have the architecture I was building for in it. Try doing this with your library:
% file mylibrary.a mylibrary.a (for architecture x86_64): current ar archive random library mylibrary.a (for architecture i386): current ar archive random library
|
_______________________________________________
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