----- Original Message ----- From: "Richard Campbell" <[EMAIL PROTECTED]> Newsgroups: gmane.os.cygwin.xfree,gmane.comp.debugging.ddd.bugs Cc: <[EMAIL PROTECTED]> Sent: Thursday, December 04, 2003 2:49 PM Subject: RE: DDD 3.3.8 (i686-pc-cygwin) gets `Segmentation fault WAS Re: compiling DDD
> >That is a bug in gcc on cygwin related to "#pragma interface". > >Please look for help on the cygwin mailing list. > > Arnaud, the problem is with both "#pragma interface" and "#pragma > implementation". > http://www.cygwin.com/ml/cygwin/2003-07/msg00463.html > > Guarding all "#pragma interface" and "#pragma implementation" calls with > ifndef __CYGWIN__ > > allows everything to compile cleanly - is this something that could be > applied to the main baseline? It may be better to fix gcc. However, you can try to convince the ddd maintainer. > >Modifying ddd/config.h will not help. There is a problem with the > >lesstif distribution on cygwin. See: > >http://www.lesstif.org/INSTALL.html > > Is the following what you are referring to? What I was referring to is that in the curent lesstif version, the compatibility mode is hard-coded at build time. Therefore, there is no compatibility switch to play with once lesstif is installed. Please try on Cygwin: >cat Xmcheck.c #include <Xm/Xm.h> #include <stdio.h> int main(void){ printf("xmUseVersion=%d XmVersion=%d\n", xmUseVersion, XmVersion); return 0; } >gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib -lXm >./a.out xmUseVersion=2002 XmVersion=2002 If it gives different numbers, there is a good chance that your lesstif library won't work properly. Regards, > > -Richard Campbell. >
