Re: long math functions on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

Thank you all for the replies, very appreciated,

yes I did of course include -lm. I use other math functions and it is
alright, only long double functions are missing. So, are they not
included on cygwin entirely, or should I download a newer libc? I just
downloaded and installed from the nearest mirror thinking the latest
will come any way

thank you again,

kind regards,

Manal


2008/11/19 Anandkumar, CB IN BLR SISL <anand.cb@xxxxxxxxxxx>
>
>  Hai manal,
>        Did you provide the option -lm while compiling your code.
>
> With regards,
> Anandkumar.C.B
>
> -----Original Message-----
> From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
> Behalf Of Manal Helal
> Sent: Tuesday, November 18, 2008 4:37 PM
> To: gcc-help@xxxxxxxxxxx
> Subject: long math functions on cygwin
>
> 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:
> /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver bose
> --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib
> --libe xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
> --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
> --without-included-gettext -- enable-version-specific-runtime-libs
> --without-x --enable-libgcj
> --disable-java-
> awt --with-system-zlib --enable-interpreter --disable-libgcj-debug
> --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry
> --enable-sjlj-exceptio ns --enable-hash-synchronization
> --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming
> special, gdc 0.12, using dmd 0.125)
>
> *****************************************
>
> and I get these errors:
>
> *****************************************
> /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'
> *****************************************
>
>
>
> Can you please help me find what is missing?
>
> thank you very much,
>
> Kind Regards,
>
> manal
>
>
>
>
>
> Important notice:This e-mail and any attachment thereto contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux