caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stagiaire Bioinfo 2001-2002 <stagbio1@lami.univ-evry.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Compilation problem in OCAML 3.02 and 3.04
Date: Mon, 25 Feb 2002 17:13:55 +0100	[thread overview]
Message-ID: <3C7A62C2.3D9C658A@lami.univ-evry.fr> (raw)

[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]

I am a student in Computer Science in the University of Evry (France),
and I tried to compile a simple ocaml program :

let rec fact = function
0 -> 1 | n-> n*(fact(n-1));;


Unfortunately, the "ocamlopt 1fact.ml" command gave me the following
answer :
/tmp/camlasm29.s: Assembler messages:
/tmp/camlasm29.s:2: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:3: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:5: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:6: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:9: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:10: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:14: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:15: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:16: Warning: rest of line ignored; first ignored
character is `a'
/tmp/camlasm29.s:20: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:21: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:28: Error: junk `act_fact_49' after expression
/tmp/camlasm29.s:45: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:46: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:48: Error: junk `act_1' after expression
/tmp/camlasm29.s:49: Error: junk `act' after expression
/tmp/camlasm29.s:53: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:54: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:56: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:57: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:59: Warning: rest of line ignored; first ignored
character is `1'
/tmp/camlasm29.s:60: Warning: rest of line ignored; first ignored
character is `1'
Assembler error, input left in file /tmp/camlasm29.s


I think this is due to the name of the program, 1fact.ml, which should
not begin with a number, because when I renamed the file fact1.ml it
worked perfectly.
Is it normal?


Thank you.
Sarah Djebali.

[-- Attachment #2: Type: text/html, Size: 2537 bytes --]

             reply	other threads:[~2002-02-26  9:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 16:13 Stagiaire Bioinfo 2001-2002 [this message]
2002-02-26 17:53 ` Xavier Leroy
2002-02-27  7:00   ` malc

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=3C7A62C2.3D9C658A@lami.univ-evry.fr \
    --to=stagbio1@lami.univ-evry.fr \
    --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).