Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] start execution in c code with dynamic linking?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Michael Benfield <leftfist@m...>
Subject: [Caml-list] start execution in c code with dynamic linking?
The OCaml manual states that execution will start with C code rather 
than OCaml code if the C code has a main() function. This happens with 
static linking, but not with dynamic linking. I realize it may be a 
strange thing to want, but is there any way to make that happen with 
dynamic linking?

Also, is it not possible to dynamically link with the native code 
compiler? The OCaml Manual seems to concentrate almost entirely on 
ocamlc.

$ ocamlc dlltry_.so try.ml
$ ocamlopt dlltry_.so try.ml
/usr/local/bin/ocamlopt: don't know what to do with dlltry_.so.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners