You shouldn't have to point to absolute paths,
if the installations have been done correctly. The
right way to write the example you gave is

#include <Xm/Xm.h>
main() {}

The use of <> as opposed to "" in the include
statement makes the compiler look in all the
standard places.

Your original problem (the include files for X11 not
being found) appears to be that you don't have the
X11 development component from Cygwin installed.
A look at the Cygwin web site learns me that they
call this the "XFree86-prog" package. Install that
and try again.

        Danny

Gary Nicholson wrote:
> Thanks for answering.
> 
> First two errors:
> 
>         X11/Intrinsic.h: no such file or directory
> 
>         X11/Shell.h: no such file or directory
> 
> which are followed by seven more similar errors,
> one for each header file include in Xm.h
> 
> I guess my problem is how to point to compiler to the
> usr/X11R6/include directory, so I don't have to use
> absolute paths.
> 
> Gary
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 20, 2003 1:42 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Lesstif] Compiling Lesstif on Cygwin
> 
> Which errors ?
> 
>         Danny
> 
> Gary Nicholson wrote:
> > I've installed Cygwin on Windows XP. The X Server starts and runs with
> > no errors.
> >
> > I installed lesstif-cygwin-0.93.8.
> >
> > I try to compile the following code with g++/c++ and get many errors
> > when Xm.h is parsed:
> >
> >         #include "/usr/X11R6/include/Xm/Xm.h"
> >
> >         main() { }
> >
> > Should I be using a different compiler?

-- 
Danny Backx ([EMAIL PROTECTED] [EMAIL PROTECTED])
Home page :     http://users.skynet.be/danny.backx
Projects:       LessTif (http://lesstif.sourceforge.net)
                Xbae    (http://xbae.sourceforge.net)
_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to