Danny, Thank you. The compiler options work fine.
Gary -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: Re: [Lesstif] Compiling Lesstif on Cygwin Ah, hang on. You should use compiler options (on Cygwin as well as on any unix) to show the compiler where to look. If you have X installed in /usr/X11R6 - that's the standard nowadays, and e.g. you would have LessTif installed in /usr/lesstif, then your typical compiler command line would look like this : cc -I/usr/lesstif/include -I/usr/X11R6/include \ -L/usr/lesstif/lib -L/usr/X11R6/lib -o p p.c \ -lXm -lXt -lX11 I've attached a Makefile of my own that does all this. You can probably expand on it. Danny Gary Nicholson wrote: > > Danny, > > Thank you for your suggestion. > > I changed the #include statement as you suggested. > > I checked my installation of Cygwin: > > The "Xfree86-prog" package was installed. > > I re-installed it, but the errors persisted. > > I moved all of the X11R6 header files from > > /usr/X11R6/include > to > /usr/include > > and the program compiles with no errors. > > I don't like this solution, but it shows me > that Lesstif will compile on my machine. > > I am going to move the header files back to their > original location and keep exploring how to set the > include path for g++. > > Thanks again for your help. > > Gary > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 1:46 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [Lesstif] Compiling Lesstif on Cygwin > > 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) -- 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
