When I try to compile lyx with 'cxx -std strict_ansi' (which avoids
some streams class problems) I get the following error message:

mycxx -std strict_ansi -DHAVE_CONFIG_H -I. -I../../../lyx-devel/src/mathed -I../../src 
-I../../../lyx-devel/images -I../../../lyx-devel/src/mathed/../ 
-I../../../lyx-devel/src/mathed/../support  -I/afs/rocq/home/meval/common/include  
-I/usr/local/include     -g -c ../../../lyx-devel/src/mathed/math_forms.C
cxx: Error: ../../../lyx-devel/src/mathed/math_forms.C, line 21: argument of
          type "void (*)(FL_OBJECT *, long)" is incompatible with parameter of
          type "FL_CALLBACKPTR"
    fl_set_object_callback(obj,button_cb,100);
-------------------------------^

In forms.h, FL_CALLBACKPTR is defined as
typedef void (*FL_CALLBACKPTR) (FL_OBJECT *, long);

To me, these definitions look compatible... Could someone enlighten me
on the reason why cxx think they are not compatible? Should we add a
typecast here?

JMarc

Note: the 'mycxx' I use here is just a wrapper script which handles
the dependency generating commands that automake-generated makefiles
use.

Reply via email to