gmp-discuss Digest, Vol 33, Issue 1
Cristiano Woellner
crisfisico at gmail.com
Tue May 2 20:41:53 CEST 2006
Hello! you need to make in this form #gcc pi.c -lgmp -lm
because you need to link standard libraries like math library (sqrt()
function, for example)
see you!!!! :)
2006/5/2, gmp-discuss-request at swox.com <gmp-discuss-request at swox.com>:
>
> Send gmp-discuss mailing list submissions to
> gmp-discuss at swox.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://gmplib.org/mailman/listinfo/gmp-discuss
> or, via email, send a message with subject or body 'help' to
> gmp-discuss-request at swox.com
>
> You can reach the person managing the list at
> gmp-discuss-owner at swox.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gmp-discuss digest..."
>
>
> Today's Topics:
>
> 1. A 2nd time - Solaris 10 compile of GMP 4.2 (Jon S)
> 2. trouble compiling gmp-chudnovsky.c (Lloyd Standish)
>
>
>
> ---------- Mensagem encaminhada ----------
> From: Jon S <thywyn at yahoo.com>
> To: gmp-discuss at swox.com
> Date: Mon, 1 May 2006 10:13:36 -0700 (PDT)
> Subject: A 2nd time - Solaris 10 compile of GMP 4.2
> Hey people, I'm having an issue where I use
> './configure ABI=32', but the make for the whole mpn
> directory fails with "…. Warning: integer constant is
> too large for "long" type" .. Is there a way around
> this? I'm having problems compiling the GMP module
> for perl (ELFCLASS64 error) and one of the solutions
> is to compile GMP in 32-bit mode. So, I'm kind of in
> a pickle. Thanks for any help.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
>
> ---------- Mensagem encaminhada ----------
> From: "Lloyd Standish" <lloyd at crnatural.net>
> To: gmp-discuss at swox.com
> Date: Mon, 01 May 2006 23:30:14 -0600
> Subject: trouble compiling gmp-chudnovsky.c
> Hello,
>
> Thanks for a great website!
>
> I am unable to compile gmp-chudnovsky.c on my Linux PC. The gmp library
> compiled fine, but when I try to compile gmp-chudnovsky.c (renamed to
> pi.c) as follows:
>
> [lloyd at localhost demos]$ [lloyd at localhost demos]$ gcc pi.c -lgmp
>
> I get the following output:
>
> /home/lloyd/tmp/ccGVTUBR.o: In function `my_sqrt_ui':
> pi.c:(.text+0x52): undefined reference to `sqrt'
> pi.c:(.text+0xdd): undefined reference to `sqrt'
> /home/lloyd/tmp/ccGVTUBR.o: In function `build_sieve':
> pi.c:(.text+0x1797): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
>
> I can't figure out why the sqrt function seems hidden from the linker.
>
> I'd appreciate any help.
>
> Regards,
> Lloyd
>
>
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
>
>
--
Um abraço Cristiano
"As pessoas podem duvidar do que você diz, mas acreditarão sempre no que
você faz"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20060502/e15eb31d/attachment.html
More information about the gmp-discuss
mailing list