Skip navigation.
 
mlRe: How can I peer into a dynamic library to view the headers/contents?
FROM : Mike Ferris
DATE : Tue Apr 12 16:39:37 2005

For regular libraries (as opposed to frameworks) there's not much of an
"inside".  The headers are separate.  In your case I would expect to
find them somewhere in /opt/local/include (which you'll need to add to
your HEADER_SEARCH_PATHS to get #import working the way you want.

Mike Ferris

> [/Users/Ric]ls /opt/local/lib/*shp*
> /opt/local/lib/libshp.1.2.10.dylib      /opt/local/lib/libshp.1.dylib@
>          /opt/local/lib/libshp.dylib@
>
> 1) I like to peer inside of a dylib to see what APIs are available and
> hence how to incorporate it into my Obj-C Code (what do I #import ?)
> 2) How I can link the particular dylib into my project:
>    Do I merely set the LIBRARY_SEARCH_PATHS = /opt/local/lib  {via
> Build/Link option}?
>
> I'm stuck here.
>
> I have it set via the LIBRARY_SEARCH_PATHS and it compiles; but I
> don't know what to use in the #import stmt nor how to peek inside the
> dylib to see what's there to import.

Related mailsAuthorDate
mlHow can I peer into a dynamic library to view the headers/contents? Frederick C. Lee Apr 11, 20:56
mlRe: How can I peer into a dynamic library to view the headers/contents? Mike Ferris Apr 12, 16:39