Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 15 May 2001 13:21:02 -0400 From: Christopher Faylor To: Cygwin Subject: Re: undefined reference to `WinMain AT 16' Message-ID: <20010515132102.C5467@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: Cygwin References: <001601c0dd5e$96967140$e9332041 AT campbell> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <001601c0dd5e$96967140$e9332041@campbell>; from DaleCampbell@revolutionist.com on Tue, May 15, 2001 at 12:46:27PM -0400 On Tue, May 15, 2001 at 12:46:27PM -0400, Christopher Dale Campbell wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >I got this after `gcc listing-7.4.c -o listing-7.4` : > >/usr/lib/libcygwin.a(libcmain.o)(.text+0x7f): undefined reference to >`WinMain AT 16' >collect2: ld returned 1 exit status > >I've attached the actuall program I'm trying to compile. It's a very >simple program, which should compile with no problems. I'm running >cygwin-snapshot-20010510. >int maain(void) >{ You misspelled "main". cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple