English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] How to add primitives to the standard ones?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-07-11 (17:11)
From: Dekai Li <dekai@d...>
Subject: [Caml-list] How to add primitives to the standard ones?
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?


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