www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/11/23:01:56

From: Dean <r DOT dickison AT mpinet DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Installing RSX
Date: Wed, 11 Mar 1998 16:59:46 -0500
Organization: All USENET -- http://www.Supernews.com
Lines: 27
Message-ID: <35070952.E9F51999@mpinet.net>
NNTP-Posting-Host: 17196 AT 208 DOT 6 DOT 199 DOT 154
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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?

- Raw text -


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