www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/17/21:42:35

Date: Sun, 17 Mar 1996 20:47:07 +0800 (GMT+0800)
From: "Orlando A. Andico" <orly AT natalie DOT eee DOT upd DOT edu DOT ph>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: DJGPP Mailing List <djgpp AT delorie DOT com>,
Lee Braiden <lee_b AT celestia DOT dnet DOT co DOT uk>
Subject: Re: Using RSXWDK2 with DJGPP v2
In-Reply-To: <Pine.SUN.3.91.960317171533.16543U@is>
Message-ID: <Pine.LNX.3.91.960317202731.171A-100000@natalie.eee.upd.edu.ph>
MIME-Version: 1.0

On Sun, 17 Mar 1996, Eli Zaretskii wrote:

> 
> On Sun, 17 Mar 1996, Orlando A. Andico wrote:
> 
> > I don't know what to make of the "multiple definitions of main()" bit. 
> > Perhaps the time-honored hello.c must use WinMain() instead of main() but 
> > that's just my guess. Anyone have any ideas about this?
> 
> That's most probably *is* the reason.  I don't think you should try 
> compiling demos not intended for WIndows under RSXWDK.  Find some Win 
> variety of ``Hello'' and try it.
> 

Thanks, I'll try that. BTW Does anyone have *any* luck rebuilding the 
RSXWDK2 stuff with V2? I got myself some "legit" windows include files 
(from my old Turbo C++ 1.0/Windows) and followed the instructions. 
However, stuff *still* don't work. (I had to modify all the Makefiles 
'cause they were for something called ndmake which I don't have)

----------------------------------------------------------------------
In file included from rsxw32.c:4:
/lang/rsxwdk/include/windows.H:45: parse error before `WinMain'
/lang/rsxwdk/include/windows.H:48: parse error before `INT'
/lang/rsxwdk/include/windows.H:48: warning: data definition has no type 
   or storage class
make.exe: *** [rsxw32.o] Error 1
----------------------------------------------------------------------

What's going on here?  8(

Actually, I *don't* want to create Win32 apps or whatsit. I just want my 
DJGPP-compiled programs to run from the Windows console (not using a DOS 
box). I think RSX (w/o the `WDK') is enough for this... I stubbed a 
typical DJGPP image (info.exe) to use RSX instead of CWSDPMI, but Windows 
wouldn't execute it (screen would blank momentarily, then Program Manager 
comes back). However, the standard info.exe works (it should, and it 
does...) RSX is OK though, from DOS (I have to load CWSDPMI first 'cause 
RSX needs it...)

Any ideas?

Cheers,

                                             ------------------------
                                              Orlando A. Andico
                                              oandico AT eee DOT upd DOT edu DOT ph
                                             ------------------------

- Raw text -


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