delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/14/20:31:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 14 Apr 2003 20:30:58 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Idiotic question (FAQ alert)
In-Reply-To: <20030415001540.GC4784@redhat.com>
Message-ID: <Pine.GSO.4.44.0304142027291.26381-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 14 Apr 2003, Christopher Faylor wrote:

> On Mon, Apr 14, 2003 at 08:11:19PM -0400, Igor Pechtchanski wrote:
> >It took a bit of detective work to figure out what your problem is.  Let
> >me guess, you're getting an 'Undefined reference to WinMain AT 16', aren't
> >you?  If you are, did you look at the FAQ:
> ><http://cygwin.com/faq/faq_4.html#SEC95>?
>
> Except the FAQ is out of date.  libm.a is no longer a symlink to libm.a.  It
> may still be an issue but the FAQ should be changed to remove the symlink
> reference.
> cgf

Umm, yes, quite true.  I was actually able to reproduce the problem with
"gcc -lcygwin t.c".

There could be a couple of reasons for this, actually: main() could be
missing altogether (typo?), or "-lcygwin" appears in the compile command
before the source (one way that could happen is if "-lcygwin" were added
to CFLAGS instead of LIBS in a Makefile or a configure invocation
command).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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