Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: > >? > > 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/