Re: Problems linking to libpq

From: Rasputin <rasputin(at)idoru(dot)mine(dot)nu>
To: Jim Morcombe <robust(at)vianet(dot)net(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problems linking to libpq
Date: 2002-07-18 10:43:23
Message-ID: 20020718104323.GA497@idoru.mine.nu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

* Jim Morcombe <robust(at)vianet(dot)net(dot)au> [020718 03:40]:
> Thanks for the sugestion, but no luck!
>
> I tried the single line command you sugested :
> > cc -I/usr/local/pgsql/include jim.c -L/usr/local/pgsql/lib -lpq -o jim
> However, I got the same result.
>
> I checked the directory /usr/local/pgsql/lib and libpq.so was there.
> However it was a Symbolic Link to libpq.so.2.2
> I copied libpq.so.2.2 to libpq.so but it made no difference.

Eck. It's supposed to be a symlink!
Put that directory back to how it was, that isn't your problem.

> I am running SCO Unix Version 3.2 release 5.0.5
>
> I am using the standard SCO Unix Compiler which is called "cc".

Hmm, maybe that's related - on NetBSD for example, you'd need to
tell the linker where the shared libraries you use are, using something like

gcc -I/usr/X11R6/include -o bhole -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib bhole.o -lm -lglut .....

Have you done much development on this platform before?
If not, it might be worth asking on a SCO group/list if the compiler has any
quirks.

--
Rasputin :: Jack of All Trades - Master of Nuns

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Henshall, Stuart - WCP 2002-07-18 12:36:49 Re: mirroring databases
Previous Message Aarni Ruuhimäki / Megative Tmi / KYMI.com 2002-07-18 10:09:58 UNICODE error