Mach-O foreign functions [was: RMCL Documentation]
Terje Norderhaug <[email protected]> Wed, 16 Jun 2010 03:31:55 -0700
| Newsgroups | gmane.lisp.mcl.general |
|---|---|
| Message-ID | <[email protected]> |
On Jun 14, 2010, at 1:55 AM, Sandro Pedrazzini wrote: > Does anyone know what are the current options for using foreign > functions? > > Are there different "define-entry-point" ways of referring to external > libraries, and where are those libraries looked for? > I am currently still using some "old-styled" Carbon libraries, setting > the *dont-use-cfm* to NIL. In this case the library can be placed into > the RMCL directory, added to the serch path with "ccl::add-to-shared- > library-search-path" and found at runtime. > > I tried to use the same processing with a framework and with a Mach-O > dynamic library (libXYZ.dylib file). Unfortunately it seems as if the > library cannot be found, specifying it in different ways (full name, > Unix shared library convension name, etc.). > > In the latter case (Mach-O dynamic library), the Mach-O address cannot > be resolved. > Any hint or documentation? The old entry-point functionality seems less useful when it comes to Mach-O. To work around it, see e.g. the declare-bundle-ff in my kqueue.lisp: http://trac.common-lisp.net/usocket/log/usocket/trunk/vendor/kqueue.lisp -- Terje Norderhaug _______________________________________________ info-mcl mailing list [email protected] http://clozure.com/mailman/listinfo/info-mcl