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 TAA18448; Wed, 11 Jul 2001 19:11:31 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA18443 for caml-list@pauillac.inria.fr; Wed, 11 Jul 2001 19:11:31 +0200 (MET DST) 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 SAA17524 for ; Wed, 11 Jul 2001 18:29:13 +0200 (MET DST) Received: from codex.cis.upenn.edu (CODEX.CIS.UPENN.EDU [158.130.6.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6BGTCX22780 for ; Wed, 11 Jul 2001 18:29:12 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by codex.cis.upenn.edu (8.10.1/8.10.1) with ESMTP id f6BGT7h11604 for ; Wed, 11 Jul 2001 12:29:07 -0400 (EDT) Date: Wed, 11 Jul 2001 12:29:07 -0400 (EDT) From: Dekai Li To: caml-list@inria.fr Subject: [Caml-list] How to add primitives to the standard ones? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I tried to add a primitive to the standard primitives as follows. 1. I put my foo.c file in byterun/ and put the /* ML */ at the end of the primitives. 2. In byterun/Makefile, I added foo.o to macro OBJS and foo.c to PRIMS. 3. In stdlib/pervasives.ml, I added the declaration for my primitive and in stdlib/pervasives.mli, I exported the primitives. Yet it kept telling me that it can't find the external functions. What else should I do? Thanks. dekai ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr