All #include's of pike header files must be within extern "C" { };. C++ doesn't differ between the tag name space and the ordinary name space. This makes code like
struct lex { char *pos; char *end; INT32 current_line; INT32 pragmas; struct pike_string *current_file; int (*current_lexer)(YYSTYPE *); };
extern struct lex lex;
not work, unless C++ has been fixed since I looked at it last.
AFAIK, there are no such modules right now.
/ Henrik Grubbström (Lysator)
Previous text:
2004-07-15 11:33: Subject: Glue for C++ libs
If I were to write a glue for a C++ lib, what special considerations must be taken into account? Are there any such modules in Pike right now?
/ Marcus Agehall (nu med semester)