Why isn't "lib" prefixed to Dynamic Library targets in Xcode?
Why isn't "lib" prefixed to Dynamic Library targets in Xcode?
- Subject: Why isn't "lib" prefixed to Dynamic Library targets in Xcode?
- From: Dave Thorup <email@hidden>
- Date: Fri, 25 Mar 2005 14:13:22 -0500
This seems like a bug to me, but I may be wrong as I don't have a lot
of experience with creating and using dynamic libraries. So feel free
to correct me if I'm wrong.
When you create a Dynamic Library project in Xcode (1.5) the final
product is built without prefixing "lib" to its name. For example if I
create a Dylib project called Foo then the library that it builds is
Foo.dylib, but shouldn't it be libFoo.dylib?
If I then try to take the Foo.dylib library and add it to another Xcode
project then Xcode won't be able to find the library at link time. The
linker flag will be "-lFoo" which means that the linker will search for
libFoo.dylib, not Foo.dylib. Is this a bug in Xcode? If it is then
I'll report it, but if it isn't then please tell my why.
Thanks!
_____________________________
Dave Thorup
Software Engineer
email@hidden
http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults /
Preferences database.
_______________________________________________
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