bug-gmp
[Top][All Lists]
Advanced

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

Problems with compiling


From: Cool Genie
Subject: Problems with compiling
Date: Sat, 29 Dec 2001 20:09:50 +0100

Hi!
I've a Linux Mandrake 8.0 system installed. I've installed the GNU MP library (it was included on the CD's as a rpm package). Unfortunately, after compiling a simple program with gcc:
 
 $ gcc prime.c -o prime
 
I get the following error message:
 
/tmp/ccEXufVj.o: In function 'main':
/tmp/ccEXufVj.o(.text+0xe): undefined reference to '__gmpz_init'
collect2: ld returned 1 exit status
 
I'm new to Linux, so don't get mad if that's not you I should be writing to. I have no idea what could possibly go wrong. I haven't had any problems with other libraries installed as rpm's (for example: the KDE-devel library works fine). I've included the source code of the program I was compiling.
Thanks in advance.
 
o , ¸ ¸ , o¤ o ° ` ° o ¤  ¤ o ° ` ° o ¤ o , ¸ ¸ , o 
 
address@hidden
 
o , ¸ ¸ , o¤ o ° ` ° o ¤  ¤ o ° ` ° o ¤ o , ¸ ¸ , o

Attachment: prime.cpp
Description: Binary data


reply via email to

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