caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Newbie question re ocamlopt on WindowsXP
@ 2004-05-29 21:16 Kurt Luoto
  2004-05-30  3:57 ` skaller
  2004-05-30  6:55 ` Eugene Kotlyarov
  0 siblings, 2 replies; 3+ messages in thread
From: Kurt Luoto @ 2004-05-29 21:16 UTC (permalink / raw)
  To: caml-list

I am a relative newcomer to Caml/Ocaml, as of this year.  I have written a
couple of small programs for my personal use.

Now I would like to compile a standalone version of the program using
ocamlopt.  However, whenever I attempt to compile a ".ml" file, I get a
message such as the following:

C:\Documents and Settings\Kurt\My Documents\Xyz\src>ocamlopt -c xyz.ml
'ml' is not recognized as an internal or external command,
operable program or batch file.
Assembler error, input left in file
C:\DOCUME~1\KURT~1\LOCALS~1\Temp\camlasmd80d01.asm

Could someone kindly tell me what silly error I am making?

Regards,
Kurt Luoto


-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Newbie question re ocamlopt on WindowsXP
  2004-05-29 21:16 [Caml-list] Newbie question re ocamlopt on WindowsXP Kurt Luoto
@ 2004-05-30  3:57 ` skaller
  2004-05-30  6:55 ` Eugene Kotlyarov
  1 sibling, 0 replies; 3+ messages in thread
From: skaller @ 2004-05-30  3:57 UTC (permalink / raw)
  To: Kurt Luoto; +Cc: caml-list

On Sun, 2004-05-30 at 07:16, Kurt Luoto wrote:

> C:\Documents and Settings\Kurt\My Documents\Xyz\src>ocamlopt -c xyz.ml
> 'ml' is not recognized as an internal or external command,
> operable program or batch file.
> Assembler error, input left in file
> C:\DOCUME~1\KURT~1\LOCALS~1\Temp\camlasmd80d01.asm
> 
> Could someone kindly tell me what silly error I am making?
> 

Guess: probably none more serious that using spaces in filenames.

This is really bad idea on Windows, since most Windows
tools are so badly written they do not handle this
correctly! On Win98 the *EXPLORER* doesn't handle
this correctly! [I don't mean IE, I mean the actual
windows explorer file manager!!]

It is possible the mishandling of filenames is in 
the Ocaml driver.. when dispatching programs
with Windows via a command line all filenames
must be quoted (in case they have spaces in them).

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Newbie question re ocamlopt on WindowsXP
  2004-05-29 21:16 [Caml-list] Newbie question re ocamlopt on WindowsXP Kurt Luoto
  2004-05-30  3:57 ` skaller
@ 2004-05-30  6:55 ` Eugene Kotlyarov
  1 sibling, 0 replies; 3+ messages in thread
From: Eugene Kotlyarov @ 2004-05-30  6:55 UTC (permalink / raw)
  To: caml-list

Kurt Luoto wrote:

> Now I would like to compile a standalone version of the program using
> ocamlopt.  However, whenever I attempt to compile a ".ml" file, I get a
> message such as the following:
> 
> C:\Documents and Settings\Kurt\My Documents\Xyz\src>ocamlopt -c xyz.ml
> 'ml' is not recognized as an internal or external command,
> operable program or batch file.
> Assembler error, input left in file
> C:\DOCUME~1\KURT~1\LOCALS~1\Temp\camlasmd80d01.asm
> 
Probably you didn't install or didn't add to %PATH% Microsoft Assembler 
MASM which is required for MSVC ocaml port. Here is the passage from 
readme.win file from ocaml distribution.

The native-code compiler (ocamlopt) requires Visual C++ and the
Microsoft assembler MASM version 6.11 or later.  MASM can be
downloaded for free from Microsoft's Web site; for directions, see
         http://www.easystreet.com/~jkirwan/pctools.html
     or  http://www2.dgsys.com/~raymoon/faq/masm.html
     or  the comp.lang.asm.x86 FAQ.

-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-30  6:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-29 21:16 [Caml-list] Newbie question re ocamlopt on WindowsXP Kurt Luoto
2004-05-30  3:57 ` skaller
2004-05-30  6:55 ` Eugene Kotlyarov

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).