delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/15/14:05:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cgf AT redhat DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
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 <cygwin AT cygwin DOT com>
References: <001601c0dd5e$96967140$e9332041 AT campbell>
Mime-Version: 1.0
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

- Raw text -


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