Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

request ?



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group