Date: Thu, 12 Mar 1998 08:49:13 +0100 (MET) From: Olivier Perron To: Dean Cc: djgpp AT delorie DOT com Subject: Re: Installing RSX In-Reply-To: <35070952.E9F51999@mpinet.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 !!! I'm not sure, but perhaps it may be necessary to #include other header files. Olivier.