From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA13214; Tue, 29 May 2001 17:00:31 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA13175 for ; Tue, 29 May 2001 17:00:31 +0200 (MET DST) Received: from mail44.fg.online.no (mail44-s.fg.online.no [148.122.161.44]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f4TF0Uv02180 for ; Tue, 29 May 2001 17:00:30 +0200 (MET DST) Received: from online.no (ti34a07-0204.dialup.online.no [148.122.153.204]) by mail44.fg.online.no (8.9.3/8.9.3) with ESMTP id QAA24683 for ; Tue, 29 May 2001 16:59:53 +0200 (MET DST) Message-ID: <3B13B969.84D97FE0@online.no> Date: Tue, 29 May 2001 16:59:53 +0200 From: Tore Lund X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Porting to EPOC References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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