Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page

Top Document: Motif FAQ (Part 1 of 9)
Previous Document: 14)* What versions of Motif are there?
Next Document: 16) Is there a concise features list for Motif 2.0?


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

15)* How can I find which version of Motif I have? Xlib or Xt


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




Top Document: Motif FAQ (Part 1 of 9)
Previous Document: 14)* What versions of Motif are there?
Next Document: 16) Is there a concise features list for Motif 2.0?

Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
kenton@rahul.net (Ken Lee)

Last Update May 13 2007 @ 00:23 AM