On Thu, Jun 28, 2001 at 11:59:44AM +0100, Michael Stevens wrote:
> #include <stdio.h> int main() { printf("Ok\n"); exit(0); }
>
> I used the command:
>
> cc -o try -O -I/usr/local/include -L/usr/local/lib
> -L/opt/APPS/forte-6/SUNWspro/WS6/lib try.c -lsocket -lnsl -lgdbm -ldb
> -ldl -lm -lc ./try
>
> and I got the following output:
>
> ld.so.1: ./try: fatal: libgdbm.so.2: open failed: No such file or directory
> Killed The program compiled OK, but exited with status 137. You have a
> problem. Shall I abort Configure [y] Ok. Stopping Configure.
>
> I've tried to disable gdbm support with -Ui_gdbm, but I still get the same
> error.
It starts working if I add -R/usr/local/lib to lddlflags and ldflags.
Michael
Thread Previous