Error Message while Trying To Run A Compiled libpq.h file.

From: "Daniel R(dot) Anderson" <dan(at)mathjunkies(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Error Message while Trying To Run A Compiled libpq.h file.
Date: 2003-03-27 20:32:00
Message-ID: 3E835FC0.9070906@mathjunkies.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm experimenting with the libpq.h file and tried compiling the
testlibpq.c file as follows:

1. I edited testlibpq.c so that instead of NULL it was looking for my host.
2. I tried compiling by:

$ gcc ./testlibpq.c -o testlibpq.compiled -I /usr/local/pgsql/include -L
/usr/local/pgsql/lib -lpq

3. Now, when I tried to run it, i.e. (./testlibpq.compiled) I get the
following error:

/usr/libexec/ld.so: testlibpq.compiled: libpq.so.3.0: No such file or
directory

What am I doing wrong?

Thanks,

Dan

Browse pgsql-general by date

  From Date Subject
Next Message Flower Sun 2003-03-27 20:42:37 About OIDs
Previous Message Jason Hihn 2003-03-27 20:28:10 Re: Long term read-only records?