From: chris AT select DOT u-net DOT com (+Chris) Newsgroups: comp.os.msdos.djgpp Subject: Using GCC: the first Win32 program Message-ID: <370180e3.628888@news.u-net.com> X-Newsreader: Forte Free Agent 1.11/32.235 NNTP-Posting-Host: 195.102.191.4 X-Complaints-To: news AT u-net DOT net X-Trace: newsr2.u-net.net 922846522 195.102.191.4 (Wed, 31 Mar 1999 03:15:22 BST) NNTP-Posting-Date: Wed, 31 Mar 1999 03:15:22 BST Organization: (Posted via) U-NET Internet Ltd. X-Real-Host: 195.102.191.4 Date: Wed, 31 Mar 1999 02:13:11 GMT Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have downloaded the rsxntdj files to make windows programs. and have followed the Installation notes in the help file. However I can't get it to compile the 'first Win32' example program in the help file. The Gcc compiler returns with parse errors. see below. any idea? Ta, Chris. Output from 'gcc -zwin32 test.c -o test.exe' 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 in 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 in this function)