syntax error in Xm/XmStrDefs.h
Brought to you by:
dannybackx
Hi,
I got the following error trying to compile a program
which includes Xm/XmStrDefs.h but not Xm/Xm.h:
/usr/X11R6/include/Xm/XmStrDefs.h|959| error:
expected constructor, destructor, or type conversion
before "extern"
/usr/X11R6/include/Xm/XmStrDefs.h|959| error:
expected `,' or `;' before "extern"
The problem is the XMLIBEXPORT macro, which needs to
be defined with:
#include <Xm/Xm.h> /* to define XMLIBEXPORT
extern */
I suggest you grep for other occurences in lesstif
too.
Jens
This is still a problem when trying to use lesstif instead of either openmotif or unix (AIX, HP-UX, Solaris) motif implementations.
On AIX5.3 for example, /usr/include/Xm/XmStrDefs.h uses 'externalref' defined in <X11/Intrinsic.h>, so this does not need to include <Xm/Xm.h> first.