compile time errors

Drew Roberts atroberts at
Thu Feb 2 15:23:23 CET 2006

Thanks for all your help with my last query. Much appreciated
Possibly a unix error, but i dont have this problem linking other libraries

Sorry to be asking what some may seem obvious, but I dont understand
how to tackle the following.

when i compile the line

$ gcc -c gmpTest.c  -lgmp -o gmpTest
I get
 -lgmp: linker input file unused because linking not done

and with this

$ gcc gmpTest.c  -lgmp -o gmpTest

i get

/usr/bin/ld: can't locate file for: -lgmp
collect2: ld returned 1 exit status

ive tried giving the path to the file before the library but to no avail.

Can anyone help?

Many thanks

More information about the gmp-discuss mailing list