Skip site navigation (1) Skip section navigation (2)

Re: Programming for PostgreSQL

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Liam DeMasi <ldemasi(at)acsinc-nj(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Programming for PostgreSQL
Date: 2002-02-18 16:10:34
Message-ID: 200202181610.g1IGAYI23875@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-admin by date

Next:From: Marco TulioDate: 2002-02-18 16:34:06
Subject: User Defined Function
Previous:From: Pam WamplerDate: 2002-02-18 15:23:37
Subject: Where do you find the plugin for the Database Migration Wizard

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group