Re: Linking to a dylib
Re: Linking to a dylib
- Subject: Re: Linking to a dylib
- From: Randy Croucher <email@hidden>
- Date: Thu, 6 Nov 2003 16:26:06 -0800
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.