Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used
От | John McKown |
---|---|
Тема | Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used |
Дата | |
Msg-id | CAAJSdjgOSYikk_y8K3afJP8zxGbZqrh8BOkrLhV8Dk4hpsqnrQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used (Poul Kristensen <bcc5226@gmail.com>) |
Ответы |
Re: Postgresql 9.5 and Shell scripts/variables vs. C
programming/defining a value to be used
|
Список | pgsql-general |
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 isconst 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 withReserved res = PQexecParms(conn.... )Then I assume that I have to use another reference than res.Thanks./Poul
Maranatha! <><
John McKown
John McKown
В списке pgsql-general по дате отправления: