| From: | "Stephen Whinston" <swhinston(at)pillardata(dot)com> |
|---|---|
| To: | <pgsql-interfaces(at)postgresql(dot)org> |
| Subject: | Simple compile question |
| Date: | 2002-11-06 21:42:54 |
| Message-ID: | 0565CAF35FADD64DA09B86C3637BE7291492C2@coex01.trans.corp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
I just installed pgsql this morning and already encountered some difficulties. How do I compile a C/C++ client application with pgsql? Here's what I do:
gcc -c -I/usr/local/pgsql/include sample.cpp
and I get:
aggregate 'PGconn conn' has incomplete type and cannot be initialized
aggregate 'PGresult res' has incomplete type and cannot be initialized
The libpq-fe.h file *is* in /usr/local/pgsql/include
What other include files am I missing?
Also, a lot of messages seem to indicate that there is sample code under the src/ dir. Where is this? It is not under /usr/local/pgsql. Did I miss a step in the install?
thanks,
Stephen
| From | Date | Subject | |
|---|---|---|---|
| Next Message | ljb | 2002-11-07 01:26:46 | pgtcl: Change in behavior of pg_result -oid, vs documentation |
| Previous Message | Michael Klatt | 2002-11-05 16:54:11 | PQcmdTuples() declaration |