X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9282E9DCAF0 for ; Mon, 13 Mar 2006 14:27:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13022-10 for ; Mon, 13 Mar 2006 14:27:45 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 964F89DC836 for ; Mon, 13 Mar 2006 14:27:43 -0400 (AST) Received: from hyperion.stayhosted.com (hyperion.stayhosted.com [70.84.193.98]) by svr4.postgresql.org (Postfix) with ESMTP id 6D5015AF051 for ; Mon, 13 Mar 2006 18:27:44 +0000 (GMT) Received: from host81-151-91-93.range81-151.btcentralplus.com ([81.151.91.93]) by hyperion.stayhosted.com with esmtpa (Exim 4.52) id 1FIrlg-0005Mb-QI for pgsql-interfaces@postgresql.org; Mon, 13 Mar 2006 18:27:45 +0000 Message-ID: <4415B99A.3090404@1nsp1r3d.co.uk> Date: Mon, 13 Mar 2006 18:27:38 +0000 From: Milen Dzhumerov User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Compiling/Linking on win32 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hyperion.stayhosted.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - 1nsp1r3d.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/15 X-Sequence-Number: 6071 Hi all, I have two compilers on my win32 installations - MinGW and VS.NET2003. If I try to compile a libpq client with gcc using the following line gcc main.c libpq.a -I../include -o test It compiles fine but when I try to run it, it asks for libpq.dll (but I wanted to link statically libpq.a in). And I have no clue how to set up VS to build libpq applications. Any pointers are greatly appreciated. Regards, gamehack