ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/10/26/18:22:15

From: grape AT suned1 DOT Nswses DOT Navy DOT Mil (Mike Grapevine)
Date: Mon, 26 Oct 92 14:47:36 PPE
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: GNU C with MSDOS/Desqview-X

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:

***************************
CFLAGS= -O -c -D MSDOS -DSHAPE
.c.o:
        gcc $(CFLAGS) $<

O = work.o

L = -lxaw -lxt -lxmu -lxext -lx -lsys -lc -lm

work : $(O)
    gcc -o work $(O) $(L)
    strip work
    aout2exe work
*****************************

	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. 

	Michael D. Grapevine          |  One of these days,
	USN SWC	              	      |	   One of these days,
	Code 4L32 		      |  POW!
	grape AT suned1 DOT nswses DOT navy DOT mil  |   It's gonna happen,
	grape AT tecnet1 DOT jcte DOT jcs DOT mil    |     and I won't even realize it.
	Bus: (805) 982-0983           |
	FAX: (805) 982-0973           |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019