Re: can't get shell tool target to link against dylib target in same project
Re: can't get shell tool target to link against dylib target in same project
- Subject: Re: can't get shell tool target to link against dylib target in same project
- From: Eric Albert <email@hidden>
- Date: Thu, 26 Feb 2004 02:14:06 -0800
At 6:50 PM -0800 2/25/04, email@hidden wrote:
Make a new project, a BSD dynamic library, called testProj. The
default target that produces the library is named 'testProj' too.
/usr/bin/ld: can't locate file for: -ltestProj
This is where I just get stuck. testProj.dylib exists, it lives in
/Volumes/Users/joseph/Applications, which is added to the library
search path by the "-L/Volumes/Users/joseph/Applications" flag.
The problem is that your dylib is named 'testProj.dylib', but it
should be 'libtestProj.dylib'. I would've expected Xcode to add the
'lib' prefix by default, but perhaps it doesn't; I'm not sure.
Anyway, if you look back at the documentation for -l in ld's man
page, you'll see that -lfoo searches for libfoo.dylib, not foo.dylib.
If you make your dylib project build a dylib with the right name,
this should work.
Hope this helps,
Eric
_______________________________________________
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.