www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/30/23:21:00

From: "Marp" <Marp AT 0 DOT 0 DOT 0 DOT 0>
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 <chris AT select DOT u-net DOT com> 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)
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019