pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedProgramming for PostgreSQL
2+ messages / 2 participants
[nested] [flat]
* Programming for PostgreSQL
@ 2002-02-11 16:59 Liam DeMasi <ldemasi@acsinc-nj.com>
2002-02-18 16:10 ` Re: Programming for PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Liam DeMasi @ 2002-02-11 16:59 UTC (permalink / raw)
To: pgsql-admin
I am new to database development and programming and administration. I am
using PostgreSQL 7.1.3.
I am trying to run a simple program to insert data into a database.
I am having a problem compiling the program. I am following directions from
Bruce Momjian's book called "PostgreSQL Introduction and Concepts"
it instructs me to complie for C++ using the following format:
g++ -I/usr/local/pgsql/include -o myapp
myapp.cpp -L/usr/local/pgsql/lib -lpq++
when i run this i get the following error:
/usr/bin/ld: warning: libpq.so.2, needed by /usr/local/pgsql/lib/libpq++.so,
not found (try using --rpath)
i know the file is there, i have visually seen the file.
also, what is --rpath?
thank you
Liam
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Programming for PostgreSQL
2002-02-11 16:59 Programming for PostgreSQL Liam DeMasi <ldemasi@acsinc-nj.com>
@ 2002-02-18 16:10 ` Bruce Momjian <pgman@candle.pha.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2002-02-18 16:10 UTC (permalink / raw)
To: Liam DeMasi <ldemasi@acsinc-nj.com>; +Cc: pgsql-admin
Liam DeMasi wrote:
> I am new to database development and programming and administration. I am
> using PostgreSQL 7.1.3.
>
> I am trying to run a simple program to insert data into a database.
>
> I am having a problem compiling the program. I am following directions from
> Bruce Momjian's book called "PostgreSQL Introduction and Concepts"
>
> it instructs me to complie for C++ using the following format:
> g++ -I/usr/local/pgsql/include -o myapp
> myapp.cpp -L/usr/local/pgsql/lib -lpq++
Strange, try this:
g++ -I/usr/local/pgsql/include -o myapp
myapp.cpp -L/usr/local/pgsql/lib -lpq++ -lpq
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-02-18 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-11 16:59 Programming for PostgreSQL Liam DeMasi <ldemasi@acsinc-nj.com>
2002-02-18 16:10 ` Bruce Momjian <pgman@candle.pha.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox