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