delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/12/02:51:48

Date: Thu, 12 Mar 1998 08:49:13 +0100 (MET)
From: Olivier Perron <perron AT art DOT alcatel DOT fr>
To: Dean <r DOT dickison AT mpinet DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: Installing RSX
In-Reply-To: <35070952.E9F51999@mpinet.net>
Message-Id: <Pine.GSO.3.96.980312084740.12554A-100000@rtbsci143s>
Mime-Version: 1.0

On Wed, 11 Mar 1998, Dean wrote:

> I can't get RSX to work even after following the instructions in
> \RSXNTDJ\DOC\README.EXE.  I'm not sure what's wrong, but I try to
> compile test.c:
> 
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
> 		LPSTR lpCmdLine, int nCmdShow)
> {
> 	MessageBox (NULL, "Hello Win32", "First App", MB_OK);
> 	return 0;
> }
> 
> 
> using the command of:
> 
> gcc -Zwin32 test.c -o test.exe
> 
> and the results are:
> 
> test.c:2: parse error before `WinMain'
> test.c:2: parse error before `hInstance'
> test.c: In function `WinMain':
> test.c:5: `NULL' undeclared (first use this function)
> test.c:5: (Each undeclared identifier is reported only once
> test.c:5: for each function it appears in.)
> test.c:5: `MB_OK' undeclared (first use this function)
> 
> So I'm really having trouble...  What could be wrong?
> 
Try to #include <windows.h> !!!
I'm not sure, but perhaps it may be necessary to #include other header
files.

Olivier.


- Raw text -


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