[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: solaris link problem
From: |
Ed Thomas |
Subject: |
Re: solaris link problem |
Date: |
Wed, 20 Dec 2000 20:23:07 +0000 (GMT) |
On 21 Dec 2000, Kevin Ryde wrote:
> Ed Thomas <address@hidden> writes:
> >
> > libra$ gcc -Wa,-xarch=v8plus -mcpu=v9 -o go -L. -lgmp go.c
> > Undefined first referenced
> > symbol in file
> > __gmpz_init_set_str /var/tmp/ccP1aqQo1.o
> > ...
>
> I think you need to use -L.libs, since libtool puts the uninstalled
> libgmp.a in that subdirectory. (Cf. the example in the INSTALL file.)
No, I copied libgmp.a from gmp-3.1.1/.libs into the same directory as go.c
before compiling. That's why I said -L.