From: vinoth david <online.vinoth@gmail.com>
To: pgsql-interfaces@postgresql.org
Subject: request ?
Date: Thu, 13 Jul 2006 12:07:27 +0530
Message-ID: <b51fc7540607122337ka80af1cu1b4242a3b662c0e7@mail.gmail.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: online.vinoth@gmail.com
Subject: Re: request ?
In-Reply-To: <b51fc7540607122337ka80af1cu1b4242a3b662c0e7@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox