From: Michael Benfield <leftfist@mac.com>
To: caml-list@inria.fr
Subject: [Caml-list] start execution in c code with dynamic linking?
Date: Thu, 5 Aug 2004 14:33:25 -0400 [thread overview]
Message-ID: <EFC820FA-E70D-11D8-B28D-000A95CF43D4@mac.com> (raw)
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
reply other threads:[~2004-08-05 18:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EFC820FA-E70D-11D8-B28D-000A95CF43D4@mac.com \
--to=leftfist@mac.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox