caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Allsopp <dra-news@metastack.com>
To: "caml-list@yquem.inria.fr" <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] Self contained Windows executable?
Date: Mon, 19 May 2014 07:55:39 +0000	[thread overview]
Message-ID: <E51C5B015DBD1348A1D85763337FB6D9E8EEFDAC@Remus.metastack.local> (raw)
In-Reply-To: <CAOEA5rbTYj=RxRcu9wXWBgX_z94B=jxs9SF0hLQUvZtcrssToQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

ocamlopt-compiled native executables do not require Cygwin DLLs on Windows, unless you accidentally built the Cygwin port (by running configure) rather than the MinGW port (by following the instruction to edit config/ files in README.win32).

It is normal that ocamlc-compiled executables require ocamlrun (they do on *nix as well) unless you compile with -custom (which embeds the runtime system in the executable).


David


From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] On Behalf Of Andre Tampubolon
Sent: 19 May 2014 08:43
To: caml-list@yquem.inria.fr
Subject: [Caml-list] Self contained Windows executable?

Hello folks,
I just built ocaml on Windows 7 (mingw).
I notice that executables compiled with ocamlc (e.g ocamlc hello.ml<http://hello.ml> -o hello.exe) won't run on another machine. It says "Cannot exec ocamlrun".
It seems that executables created with ocaml are not "native" executables, because ocamlrun is still needed. On the other hand, executables compiled with ocamlopt require Cygwin DLLs.
Is there any workaround?

--
Andre Tampubolon
GPG public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC6492E7D01AA96CF


[-- Attachment #2: Type: text/html, Size: 5239 bytes --]

  reply	other threads:[~2014-05-19  7:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19  7:42 Andre Tampubolon
2014-05-19  7:55 ` David Allsopp [this message]
2014-05-19  7:56 ` Adrien Nader
     [not found] ` <E51C5B015DBD1348A1D85763337FB6D9E8EEFDA5@Remus.metastack.local>
     [not found]   ` <CAOEA5rZWJ+HfwkCGnLPbwwz7GVHZ6R7_ioZfyabFyNOuNnPhrg@mail.gmail.com>
2014-05-19  9:10     ` David Allsopp
2014-05-19  9:22       ` Jonathan Protzenko
2014-05-19  9:28         ` Adrien Nader

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=E51C5B015DBD1348A1D85763337FB6D9E8EEFDAC@Remus.metastack.local \
    --to=dra-news@metastack.com \
    --cc=caml-list@yquem.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;
as well as URLs for NNTP newsgroup(s).