From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: Using GCC: the first Win32 program Date: Tue, 30 Mar 1999 22:43:29 -0500 Organization: Netcom Lines: 32 Message-ID: <7ds5l0$a3l@sjx-ixn5.ix.netcom.com> References: <370180e3 DOT 628888 AT news DOT u-net DOT com> NNTP-Posting-Host: prn-nj3-14.ix.netcom.com X-NETCOM-Date: Tue Mar 30 7:43:28 PM PST 1999 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com First you should be using -Zwin32 and not -zwin32. The rsxntdj package is for an older version of gcc and djgpp. The instructions don't work for the newer versions. However, in the DJGPP FAQ it discusses how people have gotten it to work with newer versions. You can read it at http://www.delorie.com/djgpp/ +Chris wrote in message news:370180e3 DOT 628888 AT news DOT u-net 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) >