[Top][All Lists]

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

Re: I found the bug (full report)

From: Linus Nordberg
Subject: Re: I found the bug (full report)
Date: Sun, 14 Nov 2004 20:25:03 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3

Piotr Jurga¶ <address@hidden> wrote
Sun, 14 Nov 2004 18:59:01 +0100:

|  3) I can't compile this program. I think that linker doesn't know where
|  to find function gmp_printf. I compile it by using command
|          gcc -lgmp prog.c -o prog

It's quite possible that the linker finds an old version of libgmp.a
(or libgmp.so), a version that don't have the gmp_printf function.  I
don't know for sure, but my guess is that you have an old libgmp.a in
/usr/lib and your new one in /usr/local/lib.  

What happens if you add `-L /usr/local/lib' to your command?

If that doesn't solve the problem, try 'locate libgmp' or 
'find / -name libgmp\*' to see if you have multiple versions of the library

reply via email to

[Prev in Thread] Current Thread [Next in Thread]