Received: from news.tht.net (news.hub.org [216.126.91.242] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BHUHE52189 for ; Mon, 11 Feb 2002 12:30:17 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id g1BHT8W83061 for pgsql-admin@postgresql.org; Mon, 11 Feb 2002 12:29:08 -0500 (EST) (envelope-from news) From: "Liam DeMasi" X-Newsgroups: comp.databases.postgresql.admin Subject: Programming for PostgreSQL Date: Mon, 11 Feb 2002 11:59:31 -0500 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 25 Message-ID: X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 To: pgsql-admin@postgresql.org X-Archive-Number: 200202/215 X-Sequence-Number: 3371 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