Menu

#19 syntax error in Xm/XmStrDefs.h

open
nobody
Xm library (13)
5
2009-09-30
2006-08-08
Jens Seidel
No

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

Discussion

  • Paul Gevers

    Paul Gevers - 2009-09-30
    • labels: 103129 --> Xm library
     
  • Michael Haubenwallner

    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.

     

Log in to post a comment.