[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#565894: Missing extern "C" in include files



tags 565894 + upstream
severity 565894 wishlist
forwarded 565894 http://caml.inria.fr/mantis/view.php?id=4963
thanks

Goswin von Brederlow a écrit :
> when using C++ to write bindings one needs to encapsulate the ocaml
> includes with
> 
> extern "C" {
> #include <caml/memory.h>
> }
> 
> The include files themself should already contain this just like many
> other packages do.

Note that in system headers, the following is used:

#ifdef __cplusplus
extern "C" {
#endif
[...]
#ifdef __cplusplus
}
#endif

I've submitted the request to the upstream bugtracker.


Cheers,

-- 
Stéphane



Reply to: