|
From: Earnie B. <ear...@ya...> - 2002-10-25 18:42:04
|
Please use the list for these reports.
I pasted your example into a WinHello.c and compile it successfully with
`gcc -c WinHello.c'.
However,
Bob wrote:
> I have the lastest MingW and was going through the simple
> excercises on your site. The following doesn't work:
>
> #include <windows.h>
>
> int WINAPI WinMain (HINSTANCE hInstance,
> HINSTANCE hPrevInstance,
> PSTR szCmdLine,
> int iCmdShow)
> {
> MessageBox (NULL, "Hello", "Hello Demo", MB_OK);
> return (0);
> }
>
> I get:
>
> C:\MinGW\temp>gcc -c hello1.c
> hello1.c:1:2: invalid preprocessing directive #inlcude
This error should be the clue that hello1.c doesn't contain the code you
posted above.
Earnie.
|