X-Original-To: pgsql-interfaces-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4EA499FB33B for ; Thu, 13 Jul 2006 03:37:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 30159-04 for ; Thu, 13 Jul 2006 03:37:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 1591E9FB33D for ; Thu, 13 Jul 2006 03:37:33 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id x29so81099nfb for ; Wed, 12 Jul 2006 23:37:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fWnl/80pqVD5NLYLwd5ej2hvsYR7s3XilpOqnuqTj9Ul/b72M+rRQiXYV0bIls2crJYlfhaKJEyv/TmpywOhEk1fliqb/Q26KLSNATC+yIaChAp+Mf4j0TILjfTsvp1PBqhipIU4V5//G6FYzD+0HaUrfjGOEZxdBiXoAzqJ0D4= Received: by 10.48.226.15 with SMTP id y15mr511232nfg; Wed, 12 Jul 2006 23:37:27 -0700 (PDT) Received: by 10.48.241.13 with HTTP; Wed, 12 Jul 2006 23:37:27 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2006 12:07:27 +0530 From: "vinoth david" To: pgsql-interfaces@postgresql.org Subject: request ? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4048_24361501.1152772647553" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/4 X-Sequence-Number: 6194 ------=_Part_4048_24361501.1152772647553 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 #include 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 ------=_Part_4048_24361501.1152772647553 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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

------=_Part_4048_24361501.1152772647553--