Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <> 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.