From: | John McKown <john(dot)archie(dot)mckown(at)gmail(dot)com> |
---|---|
To: | Poul Kristensen <bcc5226(at)gmail(dot)com> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used |
Date: | 2016-11-22 14:50:12 |
Message-ID: | CAAJSdjgOSYikk_y8K3afJP8zxGbZqrh8BOkrLhV8Dk4hpsqnrQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Nov 22, 2016 at 8:22 AM, Poul Kristensen <bcc5226(at)gmail(dot)com> wrote:
> I think I understand.
> When I use this in my code I get
> "undefined reference to `PQexecParms'
>
The correct name is PQexecParams (note the last "a"). Sorry I missed that
when first looking. Also, just to be sure, did you include the argument
"-lpq" on the compile command to point to the PostgreSQL library for
linking?
> when compiling.
>
> references in main is
>
> const char *conninfo; /* connection string to the database */
> PGconn *conn; /* connection to the database */
> PGresult *res; /* result of sql query */
> int nFields; /* print out the attribute names */
> int i; / * print the columns */
> j;
>
> Is the a reserved reference to use with
>
> Reserved res = PQexecParms(conn.... )
>
> Then I assume that I have to use another reference than res.
>
> Thanks.
>
> /Poul
>
>
--
Heisenberg may have been here.
Unicode: http://xkcd.com/1726/
Maranatha! <><
John McKown
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2016-11-22 16:40:35 | Re: How to open PGStrom (an extension of PostgreSQL) in Netbeans? |
Previous Message | Tom Lane | 2016-11-22 14:46:15 | Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used |