Re: Programming for PostgreSQL - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: Programming for PostgreSQL
Date
Msg-id 200202181610.g1IGAYI23875@candle.pha.pa.us
Whole thread Raw
In response to Programming for PostgreSQL  ("Liam DeMasi" <ldemasi@acsinc-nj.com>)
List 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

pgsql-admin by date:

Previous
From: Naomi Walker
Date:
Subject: Re: user to database restriction?
Next
From: "Marco Tulio"
Date:
Subject: User Defined Function