Subject: Re: GNU C with MSDOS/Desqview-X To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Mon, 26 Oct 92 18:57:39 MST From: arrakis!thor AT uunet DOT UU DOT NET (Robert B. Hood) Believe it or not, Mike Grapevine said: > > Hello, > I am using the GNU C compiler/linker to develop > X applications for use with Desqview/X under MSDOS. I can > create some small applications which compile and link > successfully, but I have a problem with any application > of considerable size (> 200 lines). These latter mentioned > applications will compile and link successfully, but when I > try to run them, I get "segmentation violation errors at > so and so address" from the MSDOS operating system. I have looked > through the GNU C documentation for any other switches I > should use for creating programs to run under MSDOS, but > have not found any. This is the makefile I am using: > [...] > > Has anybody been able to create and execute > "big" X-Windows applications with GNU C to be used > with Desqview/X and MSDOS. I know that my source code > is not the cause because I compiled and ran it on a SPARC > successfully. > I am working on porting SNEWS (the News system for UUPC) to X windows as XNEWS using DGJPP 1.08 and QDDVX101.ZIP. I have it pretty well underway (about 60% complete). My total source (excluding headers files and including comments) is around 5,000 lines. I don't think it is the size of your source. One problem I had (that I *don't* seem to have writting C for MS-DOS) is that the resulting program is very sensitive to where pointers are pointing. If you try to free a NULL pointer, for instance, you will get the aforementioned segmentation violation. You might look there. Bob -- Bob Hood thor AT arrakis DOT denver DOT co DOT us H: 303-980-8392 W: 303-632-2180 --------------------------------------------------------------------------- The person with the least expertise will have the most opinions...