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

request ?

From: "vinoth david" <online(dot)vinoth(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: request ?
Date: 2006-07-13 06:37:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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");
   printf("connection failed\n");
  return EXIT_SUCCESS;

thanks and regards


pgsql-interfaces by date

Next:From: Pavel GolubDate: 2006-07-20 13:10:07
Subject: Proposal pg_dump & pg_restore
Previous:From: wolfgang.weningDate: 2006-07-11 15:57:24
Subject: No library found for -lpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group