Re: Help Wanted for running C code

Поиск
Список
Период
Сортировка
От Patrick Welche
Тема Re: Help Wanted for running C code
Дата
Msg-id 20020313001012.A10516@quartz.newn.cam.ac.uk
обсуждение исходный текст
Ответ на Help Wanted for running C code  (Pa O'Clerigh <switswoo79@yahoo.com>)
Список pgsql-hackers
On Tue, Mar 05, 2002 at 03:26:46AM -0800, Pa O'Clerigh wrote:
... 
> the problem is when i try and run a small piece of c
> code i get an error which states the following:
> cc  testing_connection.c  -L/usr/local/pgsql/lib -lpq 
> -I/usr/local/pgsql/include -o fred -O0  
> $ ./fred
> ./fred: error in loading shared libraries: libpq.so.2:
> cannot open shared object file: No such file or
> directory
...

What does
  ldd fred  file fred

tell you? Maybe
  cc testing_connection -L/usr/local/pgsql/lib -Wl,-R/usr/local/pgsql/lib -lpq\    -I/usr/local/pgsql/include -o fred
-O0

?

Patrick


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

Предыдущее
От: "Mark Pritchard"
Дата:
Сообщение: Re: Help Wanted for running C code
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Help Wanted for running C code