Re: Linking to a dylib
Re: Linking to a dylib
- Subject: Re: Linking to a dylib
- From: Matthew Formica <email@hidden>
- Date: Fri, 07 Nov 2003 10:26:49 -0800
Not trying to be a smart aleck, but there has been a Q&A out on this exact
subject at <http://developer.apple.com/qa/qa2001/qa1101.html> since
December, 2001, in the "Platforms and Tools" section of the Q&A site
<http://developer.apple.com/qa/>. I recommend all developers check the Q&As
before posting to the list or spending lots of hours trying to solve
something, particularly when it seems like the sort of thing that others
must have bumped into in the past.
- Matthew
On 11/6/03 4:26 PM, "Randy Croucher" <email@hidden> wrote:
>> I then get a "Build failed (see build log for details)" message. I
>> can only assume that means to look below at the output pane, and it
>> says "/usr/bin/libtool: can't locate file for: -lB" and
>> "/usr/bin/libtool: file: -lB is not an object file (not allowed in a
>> library)".
>
> I figured out what I needed to do to link to a dylib. The dylib cannot
> be found unless it starts with "lib". So instead of MyCoolStuff.dylib,
> it has to be named libMyCoolStuff.dylib or the linker cannot find it.
>
> Only took me about 10 hours of dinking to figure it out. Thought I
> would post it so maybe I could save someone else the time.
>
> Randy
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.