I found a few:
http://cvs.opendarwin.org//cgi-bin/cvsweb.cgi/~checkout~/src/Libcompat/
cvs -d :pserver:email@hidden:/cvs/od login
cvs -z3 -d :pserver:email@hidden:/cvs/od \
co -d dlcompat proj/dlcompat
and
ftp://us.osxgnu.org/pub/osxgnu/Libraries/dlcompat-10505X.pkg.sit
trt
Thanks, this seems to be what I want right here. Apple's
documentation is terrible on this point.
But I still have a question: how do I install libdlcompat? Is this
a fink module?
On Jan 23, 2004, at 7:33 AM, Chris Scharver wrote:
On Jan 22, 2004, at 8:16 PM, Rich Cook wrote:
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:
<http://fink.sourceforge.net/doc/porting/shared.php>
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.
--
Richard Cook
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
--
Thomas R. Treadway
Computer Scientist
Lawrence Livermore Nat'l Lab
7000 East Avenue, L-365
Livermore, CA 94550-0611