Re: Problems linking to libpq

Поиск
Список
Период
Сортировка
От Rasputin
Тема Re: Problems linking to libpq
Дата
Msg-id 20020718104323.GA497@idoru.mine.nu
обсуждение исходный текст
Ответ на Re: Problems linking to libpq  ("Jim Morcombe" <robust@vianet.net.au>)
Список pgsql-novice
* Jim Morcombe <robust@vianet.net.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: AarniRuuhimäki / Megative Tmi / KYMI.com
Дата:
Сообщение: UNICODE error
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Seeding