New hand need help on error "undifined symbol " on every function provided by gmp

Torbjorn Granlund tege@swox.com
28 Feb 2003 18:38:38 +0100


"Li, Lun" <lli@mail.smu.edu> writes:

  Then I use 
  gcc -c test.c -I/users/myname/gmp-4.2.1
  gcc -o test.o -L/users/myname/gmp-4.2.1/lib/libgmp.so
   
  whatever library I try, I got an error "undifined symbols"
  gmpz_init
  gmpz_set
  gmp_printf
   
  Could you tell me what's wrong? Thanks,
   
You're not using   the -L option properly.
"man ld" should give you the information you need.

-- 
Torbjörn