caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Shared libraries with ocamlopt callable from C (without main())?
@ 2009-01-08 22:45 Ben Aurel
  2009-01-09  8:21 ` [Caml-list] " Matthieu Dubuget
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Aurel @ 2009-01-08 22:45 UTC (permalink / raw)
  To: caml-list

hi
I'm thinking about the possibility to use OCaml as an extension
language. If I wanted to call a OCaml function from langX I had to use
a C wrapper.

    langX -> ( C API of langX | C Wrapper | C API of OCaml ) -> OCaml

Maybe I make it more complicated than it is. But could somebody tell
me if ( and maybe how ) this can be done. I made some attempts, but
there is always a main() function involved. But this C wrapper would
be a shared library.

Thanks in advance
ben


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-01-11 16:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-08 22:45 Shared libraries with ocamlopt callable from C (without main())? Ben Aurel
2009-01-09  8:21 ` [Caml-list] " Matthieu Dubuget
2009-01-09  8:44   ` [Caml-list] Shared libraries with ocamlopt callable from C(without main())? RABIH.ELCHAAR
2009-01-10  1:22   ` [Caml-list] Shared libraries with ocamlopt callable from C (without main())? Ben Jakb
2009-01-10 11:50     ` Matthieu Dubuget
2009-01-10 15:28       ` Ben Jakb
2009-01-10 15:36         ` Matthieu Dubuget
2009-01-10 18:08           ` Ben Jakb
     [not found]       ` <200901101911.41594.monnier.florent@gmail.com>
2009-01-10 18:18         ` Ben Jakb
2009-01-11 16:27     ` [Caml-list] " Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).