English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Mac x86 shared libraries
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-05-31 (15:59)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] Mac x86 shared libraries
 > ocaml install.ml
 > Cannot load required shared library dllunix.
 > Reason: dynamic loading not supported on this platform.
 > Reference to undefined global `Unix'
 > He checked on OCaml CVS and same error.
 > Any idea ?

Well, as it says: dynamic loading of C stub code is not currently
supported under MacOSX/x86, so you can't do #load "unix.cma" from the
standard toplevel.  Remember, this is not guaranteed to work
everywhere, only on platforms that support DLL loading.

Someone posted a small patch to configure that enables loading of DLL
on MacOSX/x86.  It's not yet in CVS because I'd like to test some
more, and that will have to wait until my new shiny MacBook Pro
arrives.  Feel free to fish the patch from the mailing list archives
and give it a try.

Alternatively, fix the Makefile to compile install.ml to a bytecode
executable and run that.  This would work everywhere.

- Xavier Leroy