caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] start execution in c code with dynamic linking?
@ 2004-08-05 18:33 Michael Benfield
  0 siblings, 0 replies; only message in thread
From: Michael Benfield @ 2004-08-05 18:33 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-05 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-05 18:33 [Caml-list] start execution in c code with dynamic linking? Michael Benfield

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).