Given a file foo.c, with several functions defined in it, how to
create a foo.dylib file that can be used as argument to dlopen()?
Thanks.
Note that MacOS X differentiates between shared libraries (.dylib) and
loadable modules ("bundles" with any extension). You link against a
.dylib, but you cannot use dlopen() with a dynamic library. If you're
using dlopen(), then you need to use "-bundle" when creating the shared
object. The most succinct description is probably the one provided by
fink:
Once you modify your build tools to use the proper compiler flags, then
you'll be able to load the modules pretty easily. Panther includes
dlopen() automatically. On earlier systems you'll need to install
libdlcompat.
Hope this helps,
Chris
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
_______________________________________________
scitech mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech
Do not post admin requests to the list. They will be ignored.