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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-19 (09:59)
From: Olivier Andrieu <oandrieu@n...>
Subject: Re: [Caml-list] caml/compatibility.h question
On 2/19/07, micha <micha-1@fantasymail.de> wrote:
> Hi,
> I'm making a binding to a c++ lib and I'm getting linker errors since
> the file "caml/compatibility.h" defines names such as callback and
> redefines "flush" to "caml_flush", so the flush function of the c++ lib
> gets overwritten. Do I need "caml/compatibility.h"?

no, simply #define CAML_NAME_SPACE and compatibility.h won't be included.