From: | Joris Esch <joris(dot)esch(at)esat(dot)kuleuven(dot)ac(dot)be> |
---|---|
To: | "Vasquez, Jason" <Jason(dot)Vasquez(at)Connect(dot)Xerox(dot)com> |
Cc: | pgsql-interfaces(at)hub(dot)org |
Subject: | Re: [INTERFACES] PgConnection |
Date: | 1998-10-22 07:33:02 |
Message-ID: | 98102209370100.02006@tintin |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Wed, 21 Oct 1998, you wrote:
>I have just installed PostgreSQL, and the installation took place with no
>problems/errors.
>
>I've read the documentation about using the C++ interface to Postgres, but I
>seem to be havin trouble getting anything to compile. Following the example
>included with the distribution, I have done something similar to this:
>
>#include <iostream.h>
>#include <libpq++.h>
>
>void main() {
> PgDatabase data ("foo");
>
>yadayadayada
>}
>
>Whenever I do this, I get a compile error stating that there is an undefined
>reference to PgConnection. Has anyone had a similar situation, or know how
>to remedy this?
>
>Thanks,
>-Jason
Hello:
look at the attached code. I hope it's usefull for you.
good luck
joris
--
joris esch, student in electrical engineering
Power is knowledge.
Attachment | Content-Type | Size |
---|---|---|
test3.cpp | text/x-c++ | 1.8 KB |
test3.h | text/x-c | 101 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Guido Weber | 1998-10-22 07:38:00 | |
Previous Message | Andrzej Szydlo | 1998-10-22 07:03:43 | Re: [INTERFACES] C++ Builder (Delphi), ODBC and large objects |