Mail Archives: djgpp/1997/12/03/12:00:57
Hi,
Thanks for the quick response to my question. Since I don't need the
additional files, then there is something else wrong with my setup. I am
trying to compile the following program, which came from the RSXNTDJ READ.EXE
file:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR
lpCmdLine, int nCmdShow)
{
MessageBox (NULL, "Hello Win32", "First App", MB_OK);
return 0;
}
I'm trying to compile this with the following command line:
gcc -Zwin32 test.c -o test.exe
But I get the following compile errors:
test.c:1 parse error before 'WinMain'
test.c:1 parse error before 'hInstance''
test.c: In Function 'WinMain':
test.c: 'NULL' undeclared (first use this function)
test.c:3 (Each undeclared identifier is reported only once
test.c:3 for each function it appears in.)
test.c:3 'MB_OK' undeclared (first use this function)
The following is how I have my autoexec.bat file set up:
SET
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;H:\DJGPP\BIN;H:\RHIDE\BIN;H:\RSXNTDJ\BIN;%PATH%;
SET RSXNTDJ=H:\RSXNTDJ
SET INCLUDE=H:\RSXNTDJ\INCLUDE\MSSDK; H:\RSXNTDJ\INCLUDE\WIN32
SET LIBRARY_PATH=H:\RSXNTDJ\LIB;H:\DJGPP\LIB
SET DJGPP=H:\DJGPP\DJGPP.ENV
Any ideas on what could be wrong would be greatly appreciated,
Thanks.........
Olivier PERRON wrote:
> Stephen C. Ferguson wrote:
> >
> > Hi,
> >
> > I just downloaded the RSXNTDJ and am trying to install it on my system
> > with the DJGPP compiler. The installation instructions say that I need
> > to download the Microsoft Platform SDK files and patch them in. The
>
> No, AFAIK it only say that the SDK stuff is optional and that if you
> want it you have to download it.
> But RSXNTDJ works without SDK files.
>
> > download site is suppose to be
> > ftp://ftp.microsoftcom/pub/msdownload/platformsdk, but I can't find them
> > anywhere near there. Does anyone know where I can get these files or
> > know where I can get better installation instructions for the RSXNTDJ .
>
> Olivier.
--
Stephen C. Ferguson
Iterations et Flarium24
http://home1.gte.net/itriazon/
- Raw text -