caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tore Lund <tl001@online.no>
To: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Porting to EPOC
Date: Tue, 29 May 2001 16:59:53 +0200	[thread overview]
Message-ID: <3B13B969.84D97FE0@online.no> (raw)
In-Reply-To: <Pine.GSO.4.04.10105291620240.19221-100000@clipper.ens.fr>

Alain Frisch wrote:
> 
> On Tue, 29 May 2001, Tore Lund wrote:
> 
> > Sorry, doesn't work.  I try to compile the following file:
> >
> >  let _ = c_test ();;
> >
> > and all I get is this:
> >
> >   C:\Data\ocaml>ocamlc -use-prims prims ctest.ml
> >   File "ctest.ml", line 1, characters 8-14:
> >   Unbound value c_test
> >
> > even though I have put c_test at the bottom of the list in prims.
> >
> > Any ideas?
> 
> You have to declare the primitive to Caml:
> 
> external c_test: unit -> unit = "c_test"

Thanks, I just found out myself.
-- 
    Tore

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


      reply	other threads:[~2001-05-29 15:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-29  9:07 Tore Lund
2001-05-29 12:00 ` Xavier Leroy
2001-05-29 14:10   ` Tore Lund
2001-05-29 14:22     ` Alain Frisch
2001-05-29 14:59       ` Tore Lund [this message]

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=3B13B969.84D97FE0@online.no \
    --to=tl001@online.no \
    --cc=caml-list@pauillac.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).