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_alloc + 64 bits - caml_alloc.h
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-13 (04:51)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: caml_alloc + 64 bits - caml_alloc.h
Hi everybody,

Possibly useful information. Is it already known?

When using calls to "caml_alloc" in a 64 bits architecture without
having included "caml/alloc.h", it raises "Segmentation fault" at
execution time.

Notice that I got no warning at compilation time for using caml_alloc
without a definition stub.

In 32 bits architecture, I never had any problem with that.

   Don't forget to #include "caml/alloc.h" in your C programs
   if you alloc OCaml things!

Daniel de Rauglaudre