This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Idiotic question (FAQ alert)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]