Browse thread
Shared libraries with ocamlopt callable from C (without main())?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2009-01-08 (22:46) |
From: | Ben Aurel <ben.aurel@g...> |
Subject: | Shared libraries with ocamlopt callable from C (without main())? |
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