* OCaml on Windows help
@ 2007-10-14 13:14 Raj Bandyopadhyay
2007-10-14 13:34 ` [Caml-list] " Dominique Martinet
2007-10-14 17:55 ` David Allsopp
0 siblings, 2 replies; 4+ messages in thread
From: Raj Bandyopadhyay @ 2007-10-14 13:14 UTC (permalink / raw)
To: caml-list
Hi
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....
-------------
Using ocamlc instead of ocamlopt seems to work fine, at least there are
no compilation errors.
Any suggestions on what I should do?
Thanks
Raj
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] OCaml on Windows help
2007-10-14 13:14 OCaml on Windows help Raj Bandyopadhyay
@ 2007-10-14 13:34 ` Dominique Martinet
2007-10-14 17:55 ` David Allsopp
1 sibling, 0 replies; 4+ messages in thread
From: Dominique Martinet @ 2007-10-14 13:34 UTC (permalink / raw)
To: Raj Bandyopadhyay; +Cc: caml-list
Hello,
> > 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....
> -------------
The "'ml' is not recognized..." message is a windows message telling
that it is trying to run the test.ml file.
You could try again after renaming ocamlopt into ocamlopt.exe (if it's
not already), windows has _some_ problems with file extensions (and I
recall seeing a few ocaml executable without .exe extension).
You can also try with quotes around "test.ml".
Good luck
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [Caml-list] OCaml on Windows help
2007-10-14 13:14 OCaml on Windows help Raj Bandyopadhyay
2007-10-14 13:34 ` [Caml-list] " Dominique Martinet
@ 2007-10-14 17:55 ` David Allsopp
1 sibling, 0 replies; 4+ messages in thread
From: David Allsopp @ 2007-10-14 17:55 UTC (permalink / raw)
To: caml-list
> I installed OCaml on Windows XP (the MSVC version, since I assume
> that's faster than the Cygwin version?).
MinGW/Cygwin is faster than MSVC port for bytecode. README.win32 contains a
full comparison of the three Windows ports. I don't know whether anyone's
benchmarked MASM vs Gas for performance of programs compiled with ocamlopt,
however...
David
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20071015080212.A2DD5BC73@yquem.inria.fr>]
* Re: OCaml on Windows help
[not found] <20071015080212.A2DD5BC73@yquem.inria.fr>
@ 2007-10-22 22:10 ` William Smith
0 siblings, 0 replies; 4+ messages in thread
From: William Smith @ 2007-10-22 22:10 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-22 22:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-14 13:14 OCaml on Windows help Raj Bandyopadhyay
2007-10-14 13:34 ` [Caml-list] " Dominique Martinet
2007-10-14 17:55 ` David Allsopp
[not found] <20071015080212.A2DD5BC73@yquem.inria.fr>
2007-10-22 22:10 ` William Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox