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/bigarray.h vs. caml/compatibility.h
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-02 (08:11)
From: Christian Sternagel <christian.sternagel@u...>
Subject: caml/bigarray.h vs. caml/compatibility.h
Since a few days I'm using ocaml3.10 as standard ocaml environment. Until now everything worked fine. Then I tried to recompile a stub file for an ocmal-interfaced C-library and ended up with the error message "'bigarray.h' not found". After browsing the directory <ocamllibpath>/caml/ i realised, that the compiler was correct :), there was realy no bigarray.h. Instead there is a file named compatibility.h where some preprocessor commands are included which seemed to correspond to the former bigarray.h. After creating a new file bigarray.h with the sole content:

 #include <caml/compatibility.h> 

everything worked fine, until there was another error message for a different ocaml-interfaced C-library, namely: "'camlidlruntime.h' not found". Here I had to create the file camlidlruntime.h with the content:

#include <<oldocamllibpath>/caml/camlidlruntime.h>

in order to be able to compile. Now this solution does not seem very nice to me. Is there a general advice how to change settings as the one above from ocaml < 3.10 to ocaml 3.10?