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> &lt;<a href="mailto:gmp-discuss-request@swox.com">gmp-discuss-request@swox.com
</a>&gt;:</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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 &quot;Re: Contents of gmp-discuss digest...&quot;<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp; 1. A 2nd time - Solaris 10 compile of GMP 4.2 (Jon S)
<br>&nbsp;&nbsp; 2. trouble compiling gmp-chudnovsky.c (Lloyd Standish)<br><br><br><br>---------- Mensagem encaminhada ----------<br>From: Jon S &lt;<a href="mailto:thywyn@yahoo.com">thywyn@yahoo.com</a>&gt;<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" ..&nbsp;&nbsp;Is there a way around<br>this?&nbsp;&nbsp;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.&nbsp;&nbsp;So, I'm kind of in<br>a pickle.&nbsp;&nbsp;Thanks for any help.<br><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?&nbsp;&nbsp;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: &quot;Lloyd Standish&quot; &lt;<a href="mailto:lloyd@crnatural.net">lloyd@crnatural.net</a>
&gt;<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.&nbsp;&nbsp;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>&quot;As pessoas podem duvidar do que você diz, mas acreditarão sempre no que você faz&quot;