>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | I
Lars> have added an extern "C" for peek_event, but it seems friends
Lars> are | playing tricks on me ;) | |
Lars> --------from-math_panel.h------------------------ | extern "C"
Lars> int peek_event(FL_FORM *, void *); | | /// Class to manage
Lars> bitmap menu bars | class BitmapMenu { | /// | static BitmapMenu
Lars> *active; | /// | friend int peek_event(FL_FORM *, void *); |
Lars> [...] | ------------------------------------------------- | |
Lars> What can I do?
Lars> extern "C" friend int peek_event(FL_FORM *, void *);
Lars> perhaps? have you tried that?
Yes. And friend extern "C" too. It says
cxx: Error: ../../../lyx-devel/src/mathed/math_panel.h, line 43: linkage
specification is not allowed
friend extern "C" int peek_event(FL_FORM *, void *);
----------^
I even tried to typecast the set_callback calls with (extern "C"). It
does not work :)
Maybe the C++ FAQ has something to say about this.
JMarc