Re: Including libpq++.h

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ghulands(at)bigpond(dot)net(dot)au
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Including libpq++.h
Date: 2001-04-20 01:19:11
Message-ID: 23792.987729551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Hulands <ghulands(at)bigpond(dot)net(dot)au> writes:
> I am a newbie for developing with postgresql. I have included the header file
> by : #include <postgresql/libpq++.h> (I am using 7.1) When I compile it i get
> the following errors:
> In pgconnection.h
> line 41 postgres_fe.h: No such file or directory
> line 42 libpq-fe.h: No such file or directory

> The files are located in the directory above where pgconnection.h is located

You need to make that directory part of your -I search path --- not the
one above it, which is what you evidently did. Your initial include
will simplify to #include <libpq++.h>.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2001-04-20 01:35:37 Re: Re: No printable 7.1 docs?
Previous Message Tom Lane 2001-04-20 01:14:41 Re: RFC: planner statistics in 7.2