C interface libpq.so.2 problem - Mailing list pgsql-interfaces

From dsmclennan@spipowernet.com.au
Subject C interface libpq.so.2 problem
Date
Msg-id OFB13671EA.7394FFAD-ONCA256B17.001B323A@spipowernet.com.au
Whole thread Raw
List pgsql-interfaces
Hi ,

as a new user I have followed the Momjian libpq sample program format

#include "libpq-fe.h"

and cc -I/usr/local/pgsql/include -o myapp myapp.c
-L/usr/local/pgsql/lib -lpq

my application compiles but on execution gives

libpq.so.2: cannot open shared object file

Similar problems have been listed before but none of the suggestions fixed
my problem.
Does anyone recognise this problem?

Thanks

David McLennan



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



pgsql-interfaces by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Cant load pgtclsh library into application
Next
From: "TONY J.Y."
Date:
Subject: Can not get large cursor for PGLIB ???