Linking to dylib
Linking to dylib
- Subject: Linking to dylib
- From: Mark Woollard <email@hidden>
- Date: Mon, 9 Sep 2002 14:51:13 +0100
I'm new to PB + Mac etc.
This is not really a Cocoa question but there is Cocoa code in the
overall project and this list seems to be my best source of Mac OSX
experts, so I thought I'd ask...
I'm trying to link my app to a dylib but cannot figure out how to get
the PB project to link to it correctly. I have a lib say x.dylib, I
have added this to the PB project and it flags it as a library with a L
in the box icon. I've also added the path to the library paths for the
target. Building I get:
/usr/bin/libtool: can't locate file for: -lx
/usr/bin/libtool: file: -lx is not an object file (not allowed in a
library)
If its significant the project builds another dylib.
This code is being ported from a Win32 application, I've already got it
all built under linux with gcc but am a bit stuck with OSX. I wonder if
I should be building a framework rather than a dylib.
Also, how do you get the output of the link stage into the PB build
panel? All I get is 'Build failed, see build log for details' but I've
been unable to figure out how to access this build log. I have to build
using pbxbuild to see what's really going on.
Thanks for any input...
Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.