<HTML>
<HEAD> 
<!-- $Id: FAQ.html,v 1.17 1999/08/30 00:03:28 danny Exp $ -->
<TITLE> LessTif Frequently Asked Questions </TITLE>
</HEAD>
<BODY>

<H1> LessTif FAQ </H1>

<H3> About this FAQ </H3>
This article contains the answers to some Frequently Asked Questions (FAQ) 
often seen in the LessTif mailing list and posted to comp.window.x.motif. 
It is posted to help reduce volume in the LessTif mailing list and to 
provide hard-to-find information of general interest.
<P>
                Please redistribute this article!
<P>
<!--
This article includes answers to the following questions, which are loosely
grouped into categories. Questions marked with a + indicate questions new to 
this issue; those with significant changes of content since the last issue are 
marked by !:
<P>
As of December 1996, all of the contents of this document has been
reworked significantly.
 -->
<H3> Contents </H3>

<ul>
<li><A HREF="#TOPIC1"><B>TOPIC: LessTif General Information</B></A>
   <ul>
   <li><A HREF="#QU1.0">1.0 What is LessTif ?</A>
   <li><A HREF="#QU1.1">1.1 Where can I get LessTif ?</A>
   <li><A HREF="#QU1.2">1.2 Who is developing LessTif ?</A>
	<ul>
        <li><A HREF="#QU1.2.1">1.2.1 Who is developing What ?</A>
	</ul>
    <li><A HREF="#QU1.3">1.3 Can I use LessTif in my applications ?</A>
    <li><A HREF="#QU1.4">1.4 Will LessTif be Motif1.2 Compliant?</A>
    <li><A HREF="#QU1.5">1.5 Will LessTif be Motif2.0 Compliant?</A>
    <li><A HREF="#QU1.6">1.6 What about CDE?</A>
    <li><A HREF="#QU1.7">1.7 Is there a LessTif newsgroup?</A>
    <li><A HREF="#QU1.8">1.8 Is there a LessTif mailing list?</A>
    <li><A HREF="#QU1.9">1.9 Is there a LessTif mailing list digest?</A>
    <li><A HREF="#QU1.10">1.10 Is the LessTif mailing list digest available on FTP WWW?</A>
    <li><A HREF="#QU1.11">1.11 What is LessDox?</A>
    <li><A HREF="#QU1.12">1.12 How I obtain LessDox ?</A>
    </ul>
<li><A HREF="#TOPIC2"><B>TOPIC: LessTif Installation</B></A>
    <ul>
    <li><A HREF="#QU2.0">2.0 What Platforms is LessTif on?</A>
    <li><A HREF="#QU2.1">2.1 Is there a pre-built library available for My Platform?</A>
    <li><A HREF="#QU2.2">2.2 Do I have to have Imake/xmkmf?</A>
    <li><A HREF="#QU2.3">2.3 Can I build a Shared Library?</A>
    <li><A HREF="#QU2.4">2.4 Can I build a Static Library?</A>
    <li><A HREF="#QU2.5">2.5 When I build I get _XmuEditResCheckMessages as an undef symbol?</A>
    <li><A HREF="#QU2.6">2.6 How to I build the makefiles?</A>
    <li><A HREF="#QU2.7">2.7 Why does it say I have X11r5 when I have r6 ?</A>
    <li><A HREF="#QU2.8">2.8 Error: PANIC: no realize procedure specified for this widget.</A>
    <li><A HREF="#QU2.9">2.9 Applications don't work</A>
    <li><A HREF="#QU2.10">2.11 The build fails with undefined symbols</A>
	</ul>
<li><A HREF="#TOPIC3"><B>TOPIC: LessTif Development Progress</B></A>
    <ul>
    <li><A HREF="#QU3.0">3.0 How complete is LessTif ?</A>
    <li><A HREF="#QU3.1">3.1 Is their any Documentation for LessTif ?</A>
    <li><A HREF="#QU3.2">3.2 How often is a release made ?</A>
    <li><A HREF="#QU3.3">3.3 What if I find a Bug ?</A>
    <li><A HREF="#QU3.4">3.4 What currently Works?</A>
    <li><A HREF="#QU3.5">3.5 Will Motif _Xm functions be implemented?</A>
    </ul>
<li><A HREF="#TOPIC4"><B>TOPIC: Compiling Applications With LessTif</B></A>
    <ul>
    <li><A HREF="#QU4.0">4.0 I installed LessTif but I can't compile apps with it. Help !</A>
    <li><A HREF="#QU4.1">4.1 My application doesn't build. What do I do ?</A>
    <li><A HREF="#QU4.2">4.2 My app fails to build. Symbol MrmXXX is undefined.</A>
    <li><A HREF="#QU4.3">4.3 This app uses Imake but it won't build right.</A>
    </ul>
</ul>

<!------------------------------------------------------------>
<H2><A NAME="TOPIC1">TOPIC: LessTif General Information</A></H2>

<H3><A NAME="QU1.0">1.0 What is LessTif</A></H3>

LessTif is a clone of the Motif toolkit.
Currently LessTif is partially implemented with most of the API in place.
Saying this a lot of the internal functionality is still missing. 
<P>
Compatibility can have several degrees,
the ultimate one being binary compatibility.
This is the one we're aiming for.
This can be tested even today on most platforms on which shared libraries
are supported :
if you also have Motif&reg shared libraries,
you can choose which library to use by setting an environment variable
such as LD_LIBRARY_PATH prior to executing an application.
<P>
The primary objectives have been to develop the widget code of the 
LessTif Toolkit.
Intermittently, the window manager (mwm)
and the combination of UIL compiler and libMrm are being worked on.
<P>
Volunteers to advance one or more parts of LessTif development,
or for writing documentation without an OSF, X/Open or The Open Group
copyright on it,
are always welcome.

<!------------------------------------------------------------>

<H3><A NAME="QU1.1">1.1 Where can I get LessTif</A></H3>
You can get it over the Internet at several locations.
They're listed on our <A HREF="http://www.lesstif.org">web site</A>
at http://www.lesstif.org , which is one of the places to get it.
<P>
The same web pages can point you to quite a few CD-ROM manufacturers
which put a version of LessTif on some of their products.
Many free Unix (RedHat, Debian, SuSE, Walnut Creek FreeBSD, ...)
are among them.

<!------------------------------------------------------------>
<H3><A NAME="QU1.2">1.2 Who is developing LessTif ?</A></H3>
The hungry programmers and a few Internet based individuals.
Look for an up to date list in the AUTHORS file in the LessTif
distribution.

<H3><A NAME="QU1.2.1">1.2.1 Who is developing What ?</A></H3>
<P>
Keeping a list of developers for each widget is not really possible 
mainly because the we're not fanatic about ownership of a widget.
We do keep in touch enough to know who's messing with what
so we don't overlap too much.
<P>
The current focus of the core developers can be found on the web pages.
Even that is hardly up to date :-)

<!------------------------------------------------------------>

<H3><A NAME="QU1.3">1.3 Can I use LessTif in my applications ?</A></H3>
The odds of your application running fairly well with LessTif are
pretty good.
<P>
You should be able to compile and run your code,
how well it works is another matter... 
If it doesn't, then we're very interested in hearing about
what doesn't work and why (we can't fix bugs that we don't know about),
and we're even more interested in a fix.
<P>
If your favourite application does work,
please tell us so we add it to the list of apps known to work.
<!------------------------------------------------------------>

<H3><A NAME="QU1.4">1.4 Will LessTif be Motif1.2 Compliant?</A></H3>
Yes this is the first major step.
<P>
The core developers have had arguments in the past about shooting for
something more ambitious than 1.2, but never decided on starting the effort
until they felt 1.2 compatibility was close.
<P>
In early 1997 however,
someone asked whether submissions for 2.0 or CDE widgets would be accepted.
<P>
<big><b>Of course !</b></big>
<P>
Therefore,
we expanded the source directory tree to make it easy to add new stuff,
and to build several versions of the library (and the corresponding tools).
So if anybody has a widget, or an application,
to offer which can advance us in the 2.0 or CDE areas, please E-mail us.
<P>
Somewhere along 1997 we actually started building 2.0 compliant widgets.
More of them are needed though.
<P>
<!------------------------------------------------------------>

<H3><A NAME="QU1.5">1.5 Will LessTif be Motif2.0 Compliant?</A></H3>
Yes, even though we're convinced that this will still take a long time.
Some of the new features in 2.0 are not exactly easy stuff !
<P>
Having some of the widgets implemented can make us get away with
a lot of stuff : some applications just need one of the new widgets.
If applications use some of the flashy new features such as renderings,
...
<P>
See also in <A HREF="#QU1.4">question 1.4</A>.
<!------------------------------------------------------------>

<H3><A NAME="QU1.6">1.6 What about CDE?</A></H3>
<P>
We've made room for CDE compatible widgets and applications,
and we should probably talk to the people in the eXode project,
who are working on this.
Look up their stuff at
<A HREF="http://www.simplicity.net/exode">http://www.simplicity.net/exode</A>.
<P>
We did talk to them.
<P>
They basically don't want to use too much of the 2.* stuff
(some of it is rather buggy in OSF releases);
also they really want the core of eXode to run on top of LessTif.
<!------------------------------------------------------------>

<H3><A NAME="QU1.7">1.7 Is there a LessTif newsgroup?</A></H3>
No.
<P>
Regularly, questions about LessTif (or about any free Motif&reg) clone
are asked in
<A HREF="news:comp.windows.x">comp.windows.x</A> or
<A HREF="news:comp.windows.x.motif">comp.windows.x.motif</A> .
<!------------------------------------------------------------>

<H3><A NAME="QU1.8">1.8 Is there a LessTif mailing list?</A></H3>
Yes there is.
How to get on it is described in the
<A HREF="http://www.lesstif.org/">web pages</A>.
<!------------------------------------------------------------>

<H3><A NAME="QU1.9">1.9 Is there a LessTif mailing list digest?</A></H3>
Yes.
How to get on it is described in the
<A HREF="http://www.lesstif.org/">web pages</A>.
<!------------------------------------------------------------>
<H3><A NAME="QU1.10">1.10 Is the LessTif mailing list digest available on FTP or WWW?</A></H3>
No, sorry.
<!------------------------------------------------------------>
<H3><A NAME="QU1.11">1.11 What is LessDox</A></H3>
LessDox is the shortened version of the LessTif Documentation Project.
any previous reference to LDP is now dropped because of the conflict with
the Linux Documentation Project.
<!------------------------------------------------------------>
<H3><A NAME="QU1.12">1.12 How can I obtain LessDox</A></H3>
Currently you can obtain LessDox from the lesstif URL.
<A HREF="http://www.lesstif.org">http://www.lesstif.org</A>
<P>
Nothing has happened to LessDox in a long time,
we would love some people to write free documentation
describing the LessTif widget set.

<H2><A NAME="TOPIC2">TOPIC: LessTif Installation</A></H2>
<H3><A NAME="QU2.0">2.0 What Platforms is LessTif on?</A></H3>
<P>
An accurate list is in the INSTALL file in the LessTif distribution.
Here's a short list, with version numbers stripped for brevity :
<ul>
<li>Linux
<li>FreeBSD, NetBSD, OpenBSD, BSDi (BSD/OS)
<li>Sun (SunOS, Solaris)
<li>MkLinux
<li>OS/2 (requires XFree86 and EMX)
<li>AIX
<li>Digital UNIX
<li>HP/UX
<li>CygWin 32 (Windows NT, Windows 95 with GNU development environment)
</ul>
<P>
Send mail to the LessTif mailing list at 
<A HREF="mailto:lesstif@hungry.com">lesstif@hungry.com</A>
if you want to add to the list
or if your favourite platform isn't mentioned.
<!------------------------------------------------------------>

<H3><A NAME="QU2.1">2.1 Is there a pre-built library available for My Platform?</A></H3>
Yes, we started doing that as of early March, 1997.
The core team (and some other brave guys) are providing
compiled images.
Currently we don't have a document describing how to install them,
but they're there for Linux, FreeBSD, OS/2.
<P>
Note we'll only refresh these binary distributions  at
release time, which is about once a month.
<P>
The <A HREF="INSTALL.html">INSTALL</A> file found in the source
distribution and on the web explains how to install it.
<P>
Make sure that you do get a binary version,
if that's what you're interested in; not the source distribution.
<P>
The <A HREF="http://www.debian.org">Debian Linux</A>
system comes with a pre-compiled version of LessTif.
<!------------------------------------------------------------>

<H3><A NAME="QU2.2">2.2 Do I need to have imake/xmkmf?</A></H3>
No. LessTif used to work with those,
but they became more of a problem than a solution,
so we switched to GNU autoconf,
which has the additional capability to find out many many
things about the target platform while auto-configuring itself.
<P>
Around December 1997 we also started to work with libtool and automake,
two more free tools.
They should solve the portability problems with building shared libraries
on multiple platforms for us.
You'll find this in distributions of LessTif starting with release 0.85.
<!------------------------------------------------------------>

<H3><A NAME="QU2.3">2.3 Can I build a Shared Library?</A></H3>
Yes you can on many platforms. 
They include Linux, FreeBSD, HP-UX, SunOS, Solaris, ... .
<P>
We use libtool for keeping the complexities of building and installing
shared libraries out of LessTif.
Therefore,
if LessTif doesn't build a working shared library on some platform,
you may want to check whether libtool already supports this platform.
Contact <A HREF="mailto:libtool@gnu.org">the libtool mailing list</A>
if you're interested in details about the platforms supported by libtool.
The libtool home page is at
<A HREF="http://www.gnu.org/software/libtool/libtool.html">
www.gnu.org/software/libtool/libtool.html</A>.
<!------------------------------------------------------------>

<H3><A NAME="QU2.4">2.4 Can I build a Static Library?</A></H3>
Even for this we use libtool;
but yes, you can on all platforms we can think of.

<!------------------------------------------------------------>
<H3><A NAME="QU2.5">2.5 When I build I get _XmuEditResCheckMessages as an undef symbol?</A></H3>

This shouldn't be the case any more.
We've taken EditRes out of Xmu and integrated it into
LessTif in such a way that we don't get name conflicts.
<P>
This might produce awkward results in applications that install
an EditRes handler themselves ...
<P>
Somebody probably ought to extend the configuration to allow you
to conditionally compile out the EditRes support.
The problem is nobody's complained so far.

<!------------------------------------------------------------>
<H3><A NAME="QU2.6">2.6 How do I build the makefiles?</A></H3>
LessTif is now using the GNU configure system so all you need to
do is type
<PRE>
   ./configure
   make
</PRE>
<P>
If you're brave, you might actually add stuff to our tree.
In that case you probably want to edit configure.in .
After that, you need to run :
<PRE>
	autoheader
	automake -i
	autoconf
	./configure
	make
</PRE>
Autoheader comes with autoconf; automake is a separate utility.
You don't need to go get libtool; it's included with LessTif.

<!------------------------------------------------------------>
<H3><A NAME="QU2.7">2.7 Why does it say I need X11r5 or higher when I have r6 ?</A></H3>
<P>
Several people have reported build problems;
the configure script looks for an X distribution and then checks whether
it is X11R5 or X11R6.
<P>
On some systems the configure script stops, saying
<pre>
configure: error: You must have X11 Revision 5 or higher to compile Lesstif
</pre>
while the system actually has X11r6.
<P>
Apparently this has to do with installations of Linux, in which
the include files (under /usr/include) often contain symbolic links
to the source directories (either on disk or on CD-ROM).
<P>
In such a situation, if one either removes the CD-ROM, or cleans up
/usr/src, the effect will be dangling symbolic links under /usr/include
which confuse our configure script.
<P>
The solution is obvious : make sure that your include files don't contain
symbolic links to nonexistent files.
<!------------------------------------------------------------>
<H3><A NAME="QU2.8">2.8 Error: PANIC: no realize procedure specified for this widget.</A></H3>
<P>
We've seen this happen when the order or shared libraries was incorrect.
The link order should be :
<pre>
-lXm -lXt -lX11
</pre>

<!------------------------------------------------------------>
<H3><A NAME="QU2.9">2.9 Applications don't work</A></H3>
<P>
A number of things can happen if the library order isn't right.
Reports include "<b>XXX works on Solaris 2.5 (I assume with Motif),
but not on Linux.</b>"
<P>
The link order should be :
<pre>
-lXm -lXt -lX11
</pre>
<P>
The following messages have been reported :
<pre>
Warning:
    Name: label
    Class: XmLabel
    XmRepTypeValidValue: missing type.

X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  55 (X_CreateGC)
  Resource id in failed request:  0x1c00005
  Serial number of failed request:  23
  Current serial number in output stream:  33
</pre>


<!------------------------------------------------------------>
<H3><A NAME="QU2.10">2.10 The build fails with undefined symbols</A></H3>
<P>
We might have screwed up of course.
<P>
On the other hand, please make sure that you've built the entire
distribution with the same configuration.
<P>
Not clear ?
After running the "configure" command with its options,
you should ideally run "make clean".
Otherwise e.g. clients/Motif-1.2/mwm/Makefile may be configured
such that it looks for stuff that isn't there in lib/Xm/* .

<!------------------------------------------------------------>


<H2><A NAME="TOPIC3">TOPIC: LessTif Development Progress</A></H2>
<H3><A NAME="QU3.0">3.0 How complete is LessTif ?</A></H3>
<P>
Hard to say really. Depends on how much credit you give us.
<P>
Actually most LessTif widgets work somewhat.
Many work fairly well.
Things like traversal and focus handling have been worked on,
but probably aren't really all that functional yet.
<P>
The menu system is quickly losing its child diseases
(occasionally freezing the X server with grabs).
If you're not in a rush when working the menus,
the odds are low that you'll get in much trouble.
Also dragging in the menus will get you in trouble faster
than clicking.
<P>
In short, if something does not work quite right,
tell us at <A HREF="mailto:lesstif@hungry.com">lesstif@hungry.com</A>
and we'll try to help you as soon as we possibly can.
In fact telling us about your problem is the fastest way to
get your app to work with LessTif. Recommended !
<P>
<!------------------------------------------------------------>

<H3><A NAME="QU3.1">3.1 Is there any documentation for LessTif ?</A></H3>
Yes the LessTif Documentation Project (Lessdox) 
check out the LessDox home page at:
<A HREF="http://www.lesstif.org/Lessdox/lesstif.html">
http://www.lesstif.org/Lessdox/lesstif.html</A>
<!------------------------------------------------------------>

<H3><A NAME="QU3.2">3.2 How often is a release made ?</A></H3>
Starting December 1996 we plan to make intermediary releases every
month or so, and "real" releases every three months or so.
The 0.75 release was made available around December 11, 1996.
<P>
In between releases, you can always grab lesstif-current,
which is a daily snapshot of the CVS tree which is maintained
by the core developers.
Look at the <A HREF="http://www.lesstif.org/">web site</A>
for more info.
<!------------------------------------------------------------>

<H3><A NAME="QU3.3">3.3 What if I find a Bug ?</A></H3>

Bug reports are very welcome, and we'll do our best to get the fixes
out as quick as possible.
Please send them to <A HREF="mailto:lesstif@hungry.com">lesstif@hungry.com</A>,
and include the distribution that you are using (e.g, release-0.88).
This last bit is extremely important,
since the source is continuously being updated.
<P>
The <A HREF="http://www.lesstif.org/">web site</A>
contains a
<A HREF="http://www.lesstif.org/bugs.html">write-up</A>
on how to submit bug fixes or reports.
<!------------------------------------------------------------>
<H3><A NAME="QU3.4">3.4 What currently runs ?</A></H3>
Mosaic-2.7, nedit-5.x, GIMP (old versions), ...
<P>
Look at
the <A HREF="http://www.lesstif.org/">web site</A>
for a more accurate and timely
<A HREF="http://www.lesstif.org/apps.html">list</A>.
<!------------------------------------------------------------>

<H3><A NAME="QU3.5">3.5 Will Motif _Xm functions be implemented?</A></H3>
Sure they will. Many of them are implemented already.
<P>
This was not easy though.
The _Xm* functions seem to be undocumented in Motif 1.2 therefore we will
make every effort to implement the functions as best we can.
<P>
One of our sources of information was
"Writing Your Own OSF/MOTIF Widgets"
by McMinds and Whitty,
kindly donated to us by Linux International.
<P>
The _Xm functions are implemented in the
<A HREF="Lessdox/InterFunction.html">Internal Functions</A>
section of the LessTif Documentation project.
<P>
Many of the _Xm functions are exposed in OSF/Motif&reg 2.0 where they
changed names into Xme*.
<!------------------------------------------------------------>

<H2><A NAME="TOPIC4">TOPIC: Compiling Applications With LessTif</A></H2>

<H3><A NAME="QU4.0">4.0 I installed LessTif but I can't compile apps with it. What's wrong ? </A></H3>
<P>
This probably has to do with your compiler options.
If it's indeed that, there are several possibilities.
<P>
In the examples we'll give now,
we'll be using some installation directories
that may differ from your installation.
Please adjust your compilation parameters accordingly,
don't try to fix your installation so it matches our examples.
In our examples, X has been installed in <I>/usr/X11R6</I> and
LessTif has been installed in <I>/usr/lesstif</I>.
<P>
Compilation of applications is really a two-step process :
<DL>
<LI>compiling all sources
<LI>linking them together
</DL>
<P>
The compilation phase needs to know where to find include files.
These are files that are referenced in the C (or C++) sources of your
programs as
<PRE>
 #include <Xm/Xm.h>
</PRE>
and you should find them on your system in a couple of directories
under <I>/usr/lesstif</I>/Motif1.2/include or 
<I>/usr/lesstif</I>/Motif2.0/include.
Specifically the file mentioned above should show up as
<I>/usr/lesstif</I>/Motif1.2/include/Xm/Xm.h or 
<I>/usr/lesstif</I>/Motif2.0/include/Xm/Xm.h .
<P>
For your compiler to find these files, it needs to be told where to look.
Using the examples above, the flag needed would be -I<I>/usr/lesstif</I>/include .
Note that you need to tell the compiler the same thing about the X Window System
include files, you need to do that by using the -I<I>/usr/X11R6</I>/include flag.
So together this gives
<PRE>
  -I<I>/usr/X11R6</I>/include -I<I>/usr/lesstif</I>/include
</PRE>
<P>
The second step, linking all the source files together, requires similar flags.
The linker needs to know where the libraries are,
and additionally you need to tell it which libraries
to include in the link process.
<P>
Again, using the example outlined above,
we'd need to use the flags
<PRE>
  -L<I>/usr/X11R6</I>/lib -L<I>/usr/lesstif</I>/lib
</PRE>
for the linker to know where to look, and
<PRE>
  -lMrm -lXm -lXt -lXext -lX11 -lSM -lICE
</PRE>
to know which libraries to use.
Note that the -lMrm library, as well as the -lXext library, aren't
always needed, so you might get away with using flags like
<PRE>
  -L<I>/usr/X11R6</I>/lib -L<I>/usr/lesstif</I>/lib -lXm -lXt -lX11 -lSM -lICE
</PRE>
Note that the order of the libraries is important on some systems,
and less important on others.
This means that an application writer better uses the right order,
or his application won't build on some systems.
<!------------------------------------------------------------>
<P>
<H3><A NAME="QU4.1">4.1 My application doesn't build. What do I do ?</A></H3>
<P>
If your application doesn't build, this could have several causes.
If it fails in the <B>compilation</B> process, you probably have an application
that's not error-free; or (more likely) one which needs configuration for
your site, computer platform, etc.
<BR>
It would be a good idea to consult the compilation and installation
guidelines for that application.
<P>
If the linking process fails,
this probably means you didn't specify some library, 
or the required libraries aren't present on your system.
<P>
Error messages indicating this are a long list of undefined symbols
most of which have a name with an identical prefix, such as <I>Xm</I>.
<P>
If the names you see have the <I>Xt</I> prefix,
you need to add <B>-lXt</B> to your link command.
<BR>
If the names you see have the <I>Xmu</I> prefix,
you need to add <B>-lXmu</B> to your link command.
<BR>
If the names you see have the <I>Sm</I> prefix,
you need to add <B>-lSm</B> to your link command.
<BR>
If the names you see have the <I>Xm</I> prefix,
you need to add <B>-lXm</B> to your link command.
<BR>
If the names you see have the <I>Mrm</I> prefix,
you need to add <B>-lMrm</B> to your link command.
<P>
The order in which you should specify these options is
<B>-L/usr/lesstif/lib -L/usr/X11R6/lib -lMrm -lXm -lXt -lXmu -lX11</B>.
All of these libraries aren't always necessary,
but in some cases, more libraries may be required.
<P>
Once more, the compilation and installation guidelines for the application
probably tell you which libraries to link with.
<P>
Finally, please make sure that you have the X development packages
installed on your system, not only the X user stuff.
Forgetting to install the development system could result in
messages like <I>Xm/Xm.h : cannot open file</I>,
or <I>-lXt: library not found</I>.

<!------------------------------------------------------------>

<H3><A NAME="QU4.2">4.2 My app fails to build. Symbol MrmXXX is undefined.</A></H3>
<P>
You probably forgot to add <I>-lMrm</I> to your link command.

<!------------------------------------------------------------>
<P>
<H3><A NAME="QU4.3">4.3 This app uses Imake but it won't build right.</A></H3>
<B>Imake</B> is a tool which is included in the X Window System distributions.
It is an extra layer above Makefiles (processed by the make program)
which attempts to make the build process more system independent.
<P>
Nowadays more and more applications use GNU autoconf and GNU automake
for the same purpose.
<P>
The imake program process an Imakefile and turns it into a Makefile.
Often the Imakefile uses some template file that comes with the application,
to specify additional options.
<P>
If you use imake directly to create the makefile,
then this will probably not work right,
because you need to tell imake to read the lesstif configuration files.
The <I>mxmkmf</I> program calls imake with the right parameters,
so just using this should help.
<P>
It is also possible that the Imakefile file or some file used by it
overrides some of LessTif's parameters.
Please check whether EXTRA_INCLUDES, XMLIB, or XmClientLibs
are overruled in these files.
If they are, then this is probably the cause of the problem.
<P>

<TABLE>
<TR>
<TD>
<SMALL>
Please send comments, questions, ... to
<A HREF="mailto:lesstif@hungry.com">the mailing list</A>.
</SMALL>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
