X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0B94A329DBE for ; Mon, 4 Oct 2004 07:22:49 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87342-01 for ; Mon, 4 Oct 2004 06:22:40 +0000 (GMT) Received: from web40611.mail.yahoo.com (web40611.mail.yahoo.com [66.218.78.148]) by svr1.postgresql.org (Postfix) with SMTP id 24F0D329D58 for ; Mon, 4 Oct 2004 07:22:37 +0100 (BST) Message-ID: <20041004062235.74651.qmail@web40611.mail.yahoo.com> Received: from [24.16.99.0] by web40611.mail.yahoo.com via HTTP; Sun, 03 Oct 2004 23:22:35 PDT Date: Sun, 3 Oct 2004 23:22:35 -0700 (PDT) From: Brett Schwarz Subject: Re: Win32 libpq : Static Link ? To: "Oliver D." , PostgreSQL-interfaces In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/11 X-Sequence-Number: 5106 I was able to link statically, but I have not tried VC7. I heard that VC7 enforces that you distribute the RT DLL with the app. Are you having troubles running the app on the machine you compiled on, or another machine? If the latter, then I believe you need to copy over msvcr70.dll as well. For VC6, these are the libs I had to link in to get it working (in addition to the standard ones): libpq.lib wsock32.lib MSVCRT.lib I'm not even close to being a Win guru, so I am not sure if this makes sense...I basically got it working by trial and error :) HTH, --brett --- "Oliver D." wrote: > I'm completely stuck with this issue. I just want to > know if some Win32 > developer has been able to > links statically against libpq (using libpq.lib). > Even if I apparently > could compile the static lib, the program > that try to link against still asks for a .dll. > > Any help would be appreciated. > > Thank you very much. > > Oliver. > > > Le 1 oct. 04, à 23:16, Oliver D. a écrit : > > > We are experiencing troubles trying to link > -statically- against > > libpq.lib on Windows (VC++ 7). > > > > Our app works great when we link against libpq.dll > but we can't get > > the same result > > with libpq.lib. The app seems to continuously ask > for a dll. > > > > We have compiled 7.4.X libpq on Win32 but still > can't get a static > > link. > > > > Have some windows experienced developers already > been able to link > > against > > libpq.lib with VC++ ? > > > > Thank you for your help. > > > > Oliver > > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose > an index scan if your > joining column's datatypes do not match >