agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: rajashekar <rajashekarpanneti@yahoo.in>
To: pgsql-interfaces@postgresql.org
Subject: Re: libpq on windows
Date: Wed, 5 Dec 2012 20:19:37 -0800 (PST)
Message-ID: <1354767577841-5735413.post@n5.nabble.com> (raw)

psql is too complex for me to analyze and I believe it's multithreaded 
but anyway Ic ouldn't fathom anything substantially different when the 
function PQsetdbLogin() is called (file startup.c). 
It would probably be better to say what I've doing because it's 
possible it's a mistake in some elementary aspect I haven't grasped. 
Here is a sample program: 

#include <libpq-fe.h> 
#pragma comment(lib,"libpq.lib") 
int main(void) { 
        PGconn	 *conn; 
        conn = PQconnectdb("host=localhost"); 
        return 0; 
} 

The import library was created with "impdef -f -a libpq.lib libpq.dll" 
(borland) and impdef/implib (vc++). 
This program works only when postgresql is running. 

Thanks in advance 

Gustavo Lopes 



-----




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Re-INTERFACES-libpq-on-windows-tp5735413.html
Sent from the PostgreSQL - interfaces mailing list archive at Nabble.com.




view thread (26+ messages)

Message-ID: <1354767577841-5735413.post@n5.nabble.com>
Permalink:  ../1354767577841-5735413.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1354767577841-5735413.post@n5.nabble.com

reply

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: rajashekarpanneti@yahoo.in
  Subject: Re: libpq on windows
  In-Reply-To: <1354767577841-5735413.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox