[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
version?
[Last modified: Jan 02]
Answer: The macro XmVERSION gives you the version number. The macro
XmREVISION gives you the major revision number. The macro XmVersion combines
these e.g. a value of 1002 is Motif 1.2. In Motif 1.2, the macro
XmUPDATE_LEVEL was added to give the minor revision number (also known as the
patch level).
To find the version of a compiled Motif library:
grep XmVERSION_STRING libXm.a
To find the Motif version at run-time, use the global variable:
xmUseVersion
Ken Lee adds the following for determining the Xlib and Xt version:
X11/Xlib.h should have macros like this:
#define XlibSpecificationRelease 6
meaning X11R6.
Similarly, X11/Intrinsic.h has this in X11R6:
#define XtSpecificationRelease 6
Send corrections/additions to the FAQ Maintainer:
Last Update May 13 2007 @ 00:23 AM