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
[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
$ ocamlopt
/usr/local/bin/ocamlopt: don't know what to do with

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: