[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Tore Lund <tl001@o...> |
| Subject: | Re: [Caml-list] Porting to EPOC |
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