This is the mail archive of the cygwin 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: long math functions on cygwin


-----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/


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