From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=AWL,DNS_FROM_RFC_POST autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id DD82EBC69 for ; Tue, 23 Oct 2007 00:11:13 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAB68HEdCxGBZmGdsb2JhbACOVwEBAQEHBAYRFg X-IronPort-AV: E=Sophos;i="4.21,313,1188770400"; d="scan'208";a="18484732" Received: from smtp116.sbc.mail.re3.yahoo.com ([66.196.96.89]) by mail4-smtp-sop.national.inria.fr with SMTP; 23 Oct 2007 00:11:13 +0200 Received: (qmail 48844 invoked from network); 22 Oct 2007 22:11:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=rVAdcIVyTYg2ojLiHDV/1D9C6AyDXMQYXYNHkcxJKum3NVFgCsYak/BkR9qhH/ka+VGBGpe6+scD1/JYK2R4oBt9jJJYQA/Mk+Gg1IlICX/zLdaZOEo7eqQobC/jLtDE6RAnIPO77HDy+L+wzos3qAJQgSaqRAALRUKpZo5F5Nk= ; Received: from unknown (HELO ?192.168.1.100?) (sesquized@sbcglobal.net@70.224.44.162 with plain) by smtp116.sbc.mail.re3.yahoo.com with SMTP; 22 Oct 2007 22:11:11 -0000 X-YMail-OSG: r4_g2BQVM1nIof0NcARc.vLfsCXIfUh_xVUVcTLaeYfdj3Vx97lpBCWVXccxK79GbMM4Kp23QpAB12g.NjoFcMBF12dGdhXhHXU6m.VNnybFKtsed0jpiER.dAtqii3u.Ojm8jg2hgtw2K8- Message-ID: <471D1FD4.6040908@sbcglobal.net> Date: Mon, 22 Oct 2007 18:10:28 -0400 From: William Smith User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: OCaml on Windows help References: <20071015080212.A2DD5BC73@yquem.inria.fr> In-Reply-To: <20071015080212.A2DD5BC73@yquem.inria.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 ocamlc:01 ocamlopt:01 lib:01 ocamlopt:01 cygwin:01 bug:01 'ml':01 camlcvs:01 cvsweb:01 sbcglobal:98 msvc:01 msvc:01 compiling:02 I ran into the same problem this week. ml.exe is the executable name of the Microsoft assembler. The error is confusing due to the coincidence that the assember's name is the same as the OCaml file extension. It has nothing to do with trying to execute the test.ml file. ocamlc was working because it doesn't need any of the Microsoft tools to build executable programs. The INSTALL.win32 file is a big help. Once I installed the components it indicated, I'm able to use ocamlopt. It was challenging though to get the windows executable and lib paths set correctly so that ocamlopt would use the tools it was designed for. (I had several versions of many programs that were for other unrelated purposes.) As best as I can tell, I also had to rebuild OCaml because I was using MSVC 6 and getting link errors. I think this was due to ocamlopt trying to combine the released version of 3.10.0 with the run time libraries that I have which mixed versions of the MSVC libraries. Bill I installed OCaml on Windows XP (the MSVC version, since I assume that's faster than > the Cygwin version?). I'm having trouble compiling OCaml programs from > the command line and I wonder if it's a bug or just my lack of Windows > knowledge. > > I created a sample program test.ml and here's what happens > > > ocamlopt -o test.exe test.ml > ----------- > 'ml' is not recognized as an internal or external command, > operable program or batch file > > Assembler error, input left in file.... ------------- > Please have a look to the INSTALL.win32 : > http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/README.win32?rev=1.40 > > You need to install additional software from MS