Problems with libpq
| От | Jason Lam |
|---|---|
| Тема | Problems with libpq |
| Дата | |
| Msg-id | 374b6a6d.218.0@flashmail.com обсуждение исходный текст |
| Список | pgsql-interfaces |
I am currently having problems with libpq. In my program I am trying to connect to the postgre database and get data from it by SELECT. In the begining of my program, I have a line #include "/usr/include/pgsql/libpq-fe.h" which should get the libpq to work, however, whenever I use libpq function, I get error msg like /tmp/ccCyqMcP.o(.text+0x66): undefined reference to `PQsetdbLogin' /tmp/ccCyqMcP.o(.text+0x77): undefined reference to `PQstatus' /tmp/ccCyqMcP.o(.text+0xa1): undefined reference to `PQerrorMessage' /tmp/ccCyqMcP.o(.text+0xcf): undefined reference to `PQclear' /tmp/ccCyqMcP.o(.text+0xe0): undefined reference to `PQexec' Can anyone please tell me why I am having this problem? Jason Lam ______________________________________________________ Get Your FREE FlashMail Address now at http://www.flashmail.com It's Free, Easy, & Fun !!!
В списке pgsql-interfaces по дате отправления: