Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Ian Zimmerman <itz@s...>
Subject: Re: Dynamic loading and building of shared libraries
>>>>> "skaller" == skaller  <> 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 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.