libm.a linking errork

Bob McGowan rmcgowan@veritas.com
Thu Sep 21 16:55:00 GMT 2000


Thanks, Earnie.  It's been too long since I've done this, and had
forgotten the position dependancy (even tho' I remember seeing it done
correctly recently ;-(

Earnie Boyd wrote:
> 
> In this case, your use of -lm is in the wrong location on the line.  Your
> example builds without complaint when you:
>   gcc -o pgm pgm.c -lm
> Yes, location of the library switches make a difference.
> 
> --- Bob McGowan <rmcgowan@veritas.com> wrote:
> > I remember seeing some posts regarding libm, libc and libcygwin over the
> > last few months, but I can't find anything in the archives that refers
> > to the error message I'm seeing.  But I did find some questions asked
> > about why changing the current handling of the library names should
> > change.  Either this is a reason or I have somehow misconfigured things,
> > though I can't see where.  So I'm also attaching the output of cygcheck
> > -v -r -s below, just in case;)
> >
> 
> Cheers,
> 
> =====
> --- < http://earniesystems.safeshopper.com > ---
>    Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
>             __Cygwin: POSIX on Windows__
> Cygwin Newbies: < http://gw32.freeyellow.com/ >
>            __Minimalist GNU for Windows__
>     Mingw Home: < http://www.mingw.org/ >
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list