Mail Archives: djgpp/1995/10/13/02:56:57
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2610
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!news.mathworks.com!news.kei.com!eff!news.umbc.edu!haven.umd.edu!cs.umd.edu!not-for-mail
|
From: | dfs AT cs DOT umd DOT edu (Daniel F. Savarese)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: RSXW32 help
|
Date: | 13 Oct 1995 00:02:04 -0400
|
Organization: | U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
|
Lines: | 39
|
Distribution: | world
|
References: | <45k3et$8c9 AT snocap DOT cs DOT umd DOT edu>
|
Nntp-Posting-Host: | snocap.cs.umd.edu
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
In article <45k3et$8c9 AT snocap DOT cs DOT umd DOT edu>,
Daniel F. Savarese <dfs AT cs DOT umd DOT edu> wrote:
>The long and short of it is that I can compile the sample codes without
>a hitch. But when I run them, I get the following nasty message from
>Windows 3.1:
> ---------------------------------------------
> | Application Error |
> | RSXW32 caused a General Protection Fault |
> | in module KRNL386.EXE at 0001:003A |
> ---------------------------------------------
It's kind of silly for me to respond to my own article, but in case
anyone's intersted ... I tracked down the EMX port of gcc to try out
with RSXWDK. For those who don't know, this is billed as an OS/2 port of
gcc. It turns out it works for DOS too (this was unclear to me). Oh
yeah, for anyone who wants to know, I got the EMX distribution from
http://godzilla.eecs.berkeley.edu/os2/software/shareware/emx.html
It was easy to find after I realized that Web search engines are more up
to date than Archie servers (archie led me to many outdated places).
Ok, so the deal is that when I compile windows programs with EMX, they
run just fine. So if anyone is in the same bind as I was and wants a
quick fix, get EMX. If my experience is common, we should note
in a FAQ somewhere that it is easier to get EMX to generate working Windows
apps.
Now, if anyone knows, I'd still like to know the reason for the 'Application
Error' I originally posted about. There's something else I'm curious about
that I'll probably find in the chaos of files now on my hard drive,
but feel free to tell me if you already know. Are Windows programs that
use EMX and RSXWDK, 32 bit DOS applications accessing a 16 bit Windows
API, or are they 32 bit Windows applications a la Win32s? I know the
Cygnus port of gcc (available at ftp.cygnus.com) is a Win32 compiler
generating Win32 code that will run on Windows '95 and Windows NT (not
Win32s under Windows 3.1; I figured that out by using the cross compiler
under linux and running the code under Win32s).
thanks for any helpful information or advice,
daniel
- Raw text -