From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA24235; Thu, 29 Apr 2004 16:37:04 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA24199 for ; Thu, 29 Apr 2004 16:37:03 +0200 (MET DST) From: Alain.Frisch@ens.fr Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3TEb1SH020610 for ; Thu, 29 Apr 2004 16:37:02 +0200 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id i3TEb0Kx008238 for ; Thu, 29 Apr 2004 16:37:00 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id i3TEawBT026877 for ; Thu, 29 Apr 2004 16:36:58 +0200 (MET DST) X-Authentication-Warning: clipper.ens.fr: frisch owned process doing -bs Date: Thu, 29 Apr 2004 16:36:58 +0200 (MET DST) X-X-Sender: frisch@clipper.ens.fr Reply-To: Alain.Frisch@ens.fr To: Caml list Subject: [Caml-list] Native Win32 Ocaml with Visual C++ toolkit Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Miltered: at concorde with ID 4091130D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; alain:01 frisch:01 caml-list:01 toolkit:01 caml-list:01 ocamlopt:01 toolkit:01 msdn:01 easystreet:01 masm:01 msdn:01 stupid:01 advapi:01 advapi:01 ocamlopt:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello caml-list, This is a report on my attempt to make ocamlopt work with the C compiler from the (free of charge) Visual C++ toolkit. The toolkit can be downloaded from: [1] http://msdn.microsoft.com/visualc/vctoolkit2003/ It contains the C compiler and the MS linker. Then you need to find the Microsoft Assembler: despite all the information found on the page [2] http://users.easystreet.com/jkirwan/pctools.html I couldn't find a way to fetch the ML.EXE and ML.ERR files. First, the URl for the Visual C++ processor pack (which contains MASM) download page is now: [3] http://msdn.microsoft.com/vstudio/downloads/tools/ppack/download.aspx According to [2], it would be enough to run the install program, and find the ML.EXE/ML.ERR files somewhere on the disk while the program complains that VC++ is not installed (when you click Ok, the program would erase the files). Unfortunately, I couln't find the temporary files on my disk. Maybe the latest versions are less stupid. At that point, the ML.EXE/ML.ERR files arrived magically on the hard drive, probably because of a worm, or some security hole in OE. Two .LIB were still missing: advapi32.lib and uuid.lib. I could find them in the Microsoft Core SDK. To download this SDK, you can follow the link "Microsoft Windows Platform SDK" from [1]. The download is around 200 Mb and the SDK takes 500 Mb after installation. You need only the two tiny files advapi32.lib and uuid.lib. So, finally, except the Visual C++ toolkit itself, you only need 4 files: ml.exe, ml.err, advapi32.lib and uuid.lib. And you can compile your favorite hello.ml with ocamlopt. I still haven't found an official way to get ml.exe and ml.err. -- Alain ------------------- 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