Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Me" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| 
| Me> Yes. And friend extern "C" too. It says cxx: Error:
| Me> ../../../lyx-devel/src/mathed/math_panel.h, line 43: linkage
| Me> specification is not allowed friend extern "C" int
| Me> peek_event(FL_FORM *, void *); ----------^

Could also be nice to know why peek_even need to be a friend.
 
| Me> I even tried to typecast the set_callback calls with (extern "C").
| Me> It does not work :)
| 
| Me> Maybe the C++ FAQ has something to say about this.
| 
| No, the C++ FAQ does not have anything to say. Maybe the solution is
| to consider that a bug in xforms and ask TC to declare these callback
| types outside of 'extern "C" {}'.

No... I think there must be a better solution...

did you try to put the extern "C" first on the line?

        Lgb

Reply via email to