caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dbely@mail.ru>
To: caml-list@inria.fr
Subject: Re: [Caml-list] beginner's questions
Date: Sat, 21 Sep 2002 16:17:11 +0400	[thread overview]
Message-ID: <3cs3zge0.fsf@mail.ru> (raw)
In-Reply-To: <5.1.1.6.2.20020921130501.0280a058@helpinhand.com> (Hallvard Ystad's message of "Sat, 21 Sep 2002 13:35:10 +0200")

Hallvard Ystad <hallvard.ystad@helpinhand.com> writes:

> I'm just about to get started with caml, but I encounter a few problems.
> To do something simple, I took Stephan Houben's calc.ml (from
> http://caml.inria.fr/FAQ/stephan.html), added a function to avoid division
> by zero, and tried to compile it to native code using ocamlopt (on a
> windows 2000 machine). Here's what I get: 
> D:\ocaml>ocamlopt calc.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\............\Temp\camlasm8c5322.asm
> Did I miss something? Am I dumb? I've tried to read the documentation for
> compiling (found in differen FAQs), but none  of them seem to mention
> special constraints for the windows platform.

They do. See readme.win32:

[---cut---]
       Release notes on the MS Windows ports of Objective Caml
       -------------------------------------------------------

Starting with OCaml 3.05, there are no less than three ports of
Objective Caml for MS Windows available:
  - a native Win32 port, built with the Microsoft development tools;
  - a native Win32 port, built with the MinGW development tools;
  - a port consisting of the Unix sources compiled under the Cygwin
    Unix-like environment for Windows.

Here is a summary of the main differences between these ports:

                                      Native MS     Native MinGW        Cygwin
Third-party software required
  - for base bytecode system            none            none            none
  - for ocamlc -custom                  MSVC         MinGW or Cygwin    Cygwin
  - for native-code generation          MSVC+MASM    MinGW or Cygwin    Cygwin
[---cut---]

So if you are going to use ocamlopt from win32 binary distribution, you have
to install Microsoft Visual C and Microsoft Macro Assembler on your computer.

> Second issue (not a problem!): when I try to run the ocamlbrowser, it
> complains about not finding tk83.dll and tcl83.dll. Well, I seem to have a
> version too new for this. My files are tk84.dll and tcl84.dll. I had to
> make copies of them with the "older" names for ocamlbrowser to work...

Again, the binary build expects Tcl/Tk 8.3 installed. To work with other
version you can rebuild the whole Ocaml from the sources.

> Hope someone can help with the compile problem (and maybe tell me how to
> compile with the regexp library too?). 

Which one? E.g. module "Str" is already included into the standard library.

- Dmitry Bely


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


  reply	other threads:[~2002-09-21 12:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-21 11:35 Hallvard Ystad
2002-09-21 12:17 ` Dmitry Bely [this message]
2002-09-29 11:37   ` Hallvard Ystad
2002-09-30 13:16     ` dmitry grebeniuk
2002-10-01  9:20       ` Xavier Leroy
2002-10-02  8:19         ` dmitry grebeniuk
2002-10-07 18:26 Hallvard Ystad
     [not found] <5.1.1.6.2.20021007202649.025dba60@helpinhand.com>
     [not found] ` <Pine.LNX.4.21.0210091011210.13779-100000@vestra.bendery.md >
2002-10-09  9:13   ` Hallvard Ystad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3cs3zge0.fsf@mail.ru \
    --to=dbely@mail.ru \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).