* caml/compatibility.h question
@ 2007-02-19 9:23 micha
2007-02-19 9:59 ` [Caml-list] " Olivier Andrieu
0 siblings, 1 reply; 3+ messages in thread
From: micha @ 2007-02-19 9:23 UTC (permalink / raw)
To: caml-list
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"?
cheers
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] caml/compatibility.h question
2007-02-19 9:23 caml/compatibility.h question micha
@ 2007-02-19 9:59 ` Olivier Andrieu
2007-02-19 10:23 ` micha
0 siblings, 1 reply; 3+ messages in thread
From: Olivier Andrieu @ 2007-02-19 9:59 UTC (permalink / raw)
To: micha; +Cc: caml-list
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.
--
Olivier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] caml/compatibility.h question
2007-02-19 9:59 ` [Caml-list] " Olivier Andrieu
@ 2007-02-19 10:23 ` micha
0 siblings, 0 replies; 3+ messages in thread
From: micha @ 2007-02-19 10:23 UTC (permalink / raw)
Cc: caml-list
Olivier Andrieu wrote:
> no, simply #define CAML_NAME_SPACE and compatibility.h won't be included.
>
thanks, I tried that but I was not sure, if this is "the right way to do
it" :-)
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-19 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-19 9:23 caml/compatibility.h question micha
2007-02-19 9:59 ` [Caml-list] " Olivier Andrieu
2007-02-19 10:23 ` micha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox