[prev in list] [next in list] [prev in thread] [next in thread]
List: gmp-bugs
Subject: Compiling error, "cannot find -lgmp"
From: bccp79 () hotmail ! com (Bruno Couto)
Date: 2005-09-30 16:57:26
Message-ID: BAY105-F3033E556AEDC51F7FF1C59D38F0 () phx ! gbl
[Download RAW message or body]
GMP users, please help!
I have installed GMP on /usr/local/gmp-4.1.4 (with "./configure" and then
"make") as it was said to be de default location. The installing procedures
seemed to be ok.
So, I've wrote the following test.c file:
#include <stdio.h>
#include <gmp.h>
int main (){
mpz_t i;
mpz_init(i);
return;
}
At first, I tried to compile with
gcc -o test test.c -lgmp
but I got a "gmp.h File not found"
Then, I tried
gcc -o test test.c -I /usr/local/gmp-4.1.4 -lgmp
and
gcc -o test test.c -I /usr/local/gmp-4.1.4 -L /usr/local/gmp-4.1.4 -lgmp
but for both I got a "cannot find -lgmp"
As you can probably see, I'm not a C expert, so I would like to apologize if
I am doing something obviously wrong.
Thanks in advance,
Bruno
_________________________________________________________________
Chegou o que faltava: MSN Acesso Gr?tis. Instale J?!
http://www.msn.com.br/discador
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic