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
Threads Library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-01-17 (10:34)
From: Ian Zimmerman <itz@s...>
Subject: Re: Dynamic loading and building of shared libraries
>>>>> "skaller" == skaller  <skaller@maxtal.com.au> writes:

skaller> my question is, how to tell ocaml to link a shared library,
skaller> rather than a main executable.  How do I do this? If not, can
skaller> a way be devised to tell ocamlopt to do it? Or is there a
skaller> reasone it isn't possible?

I would try something like (if gcc is your C compiler)

ocamlopt -ccopt -shared -o foobar.so foo.cmx bar.cmx

It might even work; totally untested, though, of course.

Ian Zimmerman, Oakland, California, U.S.A.
In his own soul a man bears the source
from which he draws all his sorrows and his joys.