From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p1ODi6Rh006251 for ; Thu, 24 Feb 2011 14:44:06 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqgBADPvZU3RVdi2kGdsb2JhbACEIpNBMoYEAYgGCBUBAQIJCQwHEQQgiDmaVYljPIIchQIviFoBAQMFhGV2BIFrijGITDo X-IronPort-AV: E=Sophos;i="4.62,218,1297033200"; d="scan'208";a="91982095" Received: from mail-qy0-f182.google.com ([209.85.216.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 24 Feb 2011 14:44:00 +0100 Received: by mail-qy0-f182.google.com with SMTP id 27so520732qyk.6 for ; Thu, 24 Feb 2011 05:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=S1DysbmYBQAVHT4M1YwPrN39a3z/sY7BvSqOQfppB+Y=; b=rL+FR6wC+qMznYaiGbGLYQXNVdkzEt3K7vjyRrn5P98vjYXVldGA4YLnfUPS2IqLMP 5S+fjI6W3f9MRFHiGQnAfueYFso4Bu23NMVDo8Cg24dcAE++LmFlQrFvVPkGH3mWhq4C wdCmvOseD048VcUmK0+QBZOwz6qK6ncZphSmQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VbjP3LTb0Ql5a0p2g5QDRJY8bk7Sm8U6dhQidpSr/mR4YSTSezfLpgGD4ktPOP8ORd EhmoK6cCcOmkvlZ1ZGph1r7HnLZKzpHZDosUNQ+Madw8jB9nS3qhC3iqAVx6gbU17fig 2FfkV5I4hRR1rsqbQSjD4PLck9yDHyiMYChmM= Received: by 10.229.98.198 with SMTP id r6mr627942qcn.224.1298555040136; Thu, 24 Feb 2011 05:44:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.12.137 with HTTP; Thu, 24 Feb 2011 05:43:40 -0800 (PST) In-Reply-To: <201102211147.54229.san.vu-ngoc@univ-rennes1.fr> References: <201102211147.54229.san.vu-ngoc@univ-rennes1.fr> From: Jean Krivine Date: Thu, 24 Feb 2011 14:43:40 +0100 Message-ID: To: =?UTF-8?B?VsWpIE5n4buNYyBTYW4=?= Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0016364eeacae388f9049d076796 Subject: Re: [Caml-list] Compiling Windows native code --0016364eeacae388f9049d076796 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fantastic, this procedure works like a charm (tested on a XP virutal machine installed on my mac OS X) ! I can now produce ocaml binaires for windows. Thank you very much for the tutorial! For some reason ocamlopt cannot find ocaml libraires though... but it works if you give the link to the libraires explicitely using ocamlopt -I /c/mingw/lib -I /c/ocamlmgw/lib (respecting the name of the procedure). Cheers! J On Mon, Feb 21, 2011 at 11:47 AM, V=C5=A9 Ng=E1=BB=8Dc San wrote: > incidentally, I've just installed ocaml+SDL on windows Vista and XP, > using Mingw and flexlink, and I can compile both bytecode and nativecode. > > I put up a blog post for this, maybe it can help you (?) > > > http://blogperso.univ-rennes1.fr/san.vu-ngoc/index.php/post/2011/02/20/Oc= aml- > and-SDL-on-windows > > San > > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > > --0016364eeacae388f9049d076796 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Fantastic, this procedure works like a charm (tested on a XP virutal machin= e installed on my mac OS X) ! I can now produce ocaml binaires for windows.=
Thank you very much for the tutorial!

For some reason ocamlopt c= annot find ocaml libraires though... but it works if you give the link to t= he libraires explicitely using
ocamlopt -I /c/mingw/lib -I /c/ocamlmgw/lib (respecting the name of the pro= cedure).

Cheers!

J

On Mon,= Feb 21, 2011 at 11:47 AM, V=C5=A9 Ng=E1=BB=8Dc San <<= a href=3D"mailto:san.vu-ngoc@univ-rennes1.fr">san.vu-ngoc@univ-rennes1.fr> wrote:
incidentally, I&#= 39;ve just installed ocaml+SDL on windows Vista and XP,
using Mingw and flexlink, and I can compile both bytecode and nativecode.
I put up a blog post for this, maybe it can help you (?)

http://blogperso.univ= -rennes1.fr/san.vu-ngoc/index.php/post/2011/02/20/Ocaml-
and-SDL-on-windows


San


--
Caml-list mailing list. =C2=A0Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


--0016364eeacae388f9049d076796--