Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgSvz-00040D-B8 for pgsql-interfaces@postgresql.org; Thu, 06 Dec 2012 04:19:39 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgSvy-0006yG-8q for pgsql-interfaces@postgresql.org; Thu, 06 Dec 2012 04:19:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TgSvx-0001Cq-RR for pgsql-interfaces@postgresql.org; Wed, 05 Dec 2012 20:19:37 -0800 Date: Wed, 5 Dec 2012 20:19:37 -0800 (PST) From: rajashekar To: pgsql-interfaces@postgresql.org Message-ID: <1354767577841-5735413.post@n5.nabble.com> Subject: Re: libpq on windows MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201212/2 X-Sequence-Number: 6973 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 #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.