This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: long math functions on cygwin
- From: tomas at tuxteam dot de
- To: cygwin at cygwin dot com
- Date: Tue, 18 Nov 2008 12:15:25 +0100
- Subject: Re: long math functions on cygwin
- References: <4922A0D1.2070309@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Nov 18, 2008 at 10:02:41PM +1100, Manal Helal wrote:
> Hello
>
>
> I am trying to compile some unix code on cygwin, using gcc version:
>
> *****************************************
> Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
> Configured with:
[...]
> *****************************************
> /home/user/proj/main.c:907: undefined reference to `_sqrtl'
> /home/user/proj/main.c:1743: undefined reference to `_powl'
> /home/user/proj/main.c:2006: undefined reference to `_ceill'
> /home/user/proj/main.c:2035: undefined reference to `_floorl'
> *****************************************
No clue about Windows (and very little about Cygwin), but... isn't a
"-lm" (aka link against the math library, libm) missing somewhere?
Regards
- -- tomÃs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFJIqPMBcgs9XrR2kYRAqOzAJ0deVNznzato3C5vbWglApagkardACZAc8B
Nh/0h73FkR8dm7tU5m7frMM=
=DLn4
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/