request ?

Поиск
Список
Период
Сортировка
От vinoth david
Тема request ?
Дата
Msg-id b51fc7540607122337ka80af1cu1b4242a3b662c0e7@mail.gmail.com
обсуждение исходный текст
Список pgsql-interfaces
hello,
i am using libpq.lib to access the postgresql database in windows xp using c++ (VC++  6.0) , i am getting one error when compiling ,kindly help me .
this is the error ..
 
libpq.lib : fatal error LNK1136: invalid or corrupt file
 
this is my code
 
 

#include <stdlib.h>
#include <libpq-fe.h>

int main()
{
 PGconn *myconnection = PQconnectdb("");
  if(PQstatus(myconnection) == CONNECTION_OK)
   printf("connection made\n");
  else
   printf("connection failed\n");
  PQfinish(myconnection);
  return EXIT_SUCCESS;
}

 

thanks and regards

vinoth

В списке pgsql-interfaces по дате отправления:

Предыдущее
От: wolfgang.wening@spb.de
Дата:
Сообщение: No library found for -lpq
Следующее
От: Pavel Golub
Дата:
Сообщение: Proposal pg_dump & pg_restore