Re: libpq on windows

rajashekar <[email protected]> Wed, 5 Dec 2012 20:19:37 -0800 (PST)
Newsgroups gmane.comp.db.postgresql.interfaces
Message-ID <[email protected]>
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.


-- 
Sent via pgsql-interfaces mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-interfaces