From: esperan AT ovis DOT net (Esperandi) Newsgroups: comp.os.msdos.djgpp Subject: RSXNTDJ install problems, help? Date: Wed, 08 Oct 1997 17:36:31 GMT Message-ID: <343bc324.663711@news.ovis.net> NNTP-Posting-Host: 207.0.147.35 Lines: 43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I just got and installed RSXNTDJ and I am ecstatic about using it. I've programmed the X Windows environment in C but was under the impression that C++ was the only way to write Win95 apps from everything I've seen. Anyhow, I got it, meticulously followed the installation directions... and I can't get the test.c file to compile. I created a file called test.c and out in it the following: int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox (NULL, "Hello Win32", "First App", MB_OK); return 0; } When I go to compile with "gcc -Zwin32 test.c -o test.exe" I get the following output from gcc: test.c:1: parse error before `WinMain' test.c:1: parse error before `hInstance' test.c: In function `WinMain': test.c:6: `NULL' undeclared (first use this function) test.c:6: (Each undeclared identifier is reported only once test.c:6: for each function it appears in.) test.c:6: `MB_OK' undeclared (first use this function) Did I miss something in the install? Can anyone give me a clue as to why I am getting these errors and maybe give me clues as to how to fix them? Thanks in advance. L8r Esperandi http://www.ovis.net/~esperan * Odd Jobs for the Impossible Computers * * Rantings of a madman who is not mad * * Soon: Stream of Consciousness Palace *