Mail Archives: djgpp/1998/03/12/02:51:48
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 -