Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4268B9FB4F3 for ; Thu, 31 May 2007 21:45:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 41175-01 for ; Thu, 31 May 2007 21:45:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 397B19FB659 for ; Thu, 31 May 2007 21:45:44 -0300 (ADT) Received: (qmail 18359 invoked from network); 1 Jun 2007 09:45:41 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 1 Jun 2007 09:45:41 +0900 Message-ID: <465F6C32.5090303@tpf.co.jp> Date: Fri, 01 Jun 2007 09:45:38 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Rainer Bauer CC: pgsql-odbc@postgresql.org Subject: Re: [psqlODBC 08.02.0401] Compiling fails on VS2005SP1 References: <107u53hlnagmhmbca8d8hlsosu4p4v9nnk@4ax.com> In-Reply-To: <107u53hlnagmhmbca8d8hlsosu4p4v9nnk@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.621 tagged_above=0 required=5 tests=AWL=-0.810, BAYES_50=0.001, RCVD_IN_WHOIS_BOGONS=2.43 X-Spam-Level: * X-Archive-Number: 200705/75 X-Sequence-Number: 8988 Rainer Bauer wrote: > I wrote: > >> Linking fails, because ssleay32.lib is not found. I checked the OpenSSL >> installation and the Visual C++ libraries are located in "C:\OpenSSL\lib\VC" >> and are named depending on the target (single/multi threaded, release/debug, >> etc.). But since ssleay32.lib is defined in the linker input project settings >> this cannot work. Shouldn't the lib name be generated dynamically depending on >> the target which is build and specified in the source with pragma's? > > After manually copying and renaming the lib files > (C:\OpenSSL\lib\VC\ssleay32MTd.lib -> ~\psqlodbc\ssleay32.lib and > C:\OpenSSL\lib\VC\libeay32MTd.lib -> ~\psqlodbc\libeay32.lib) I have another > linker error: > > LINK : fatal error LNK1104: cannot open file 'pgenlist.lib' The pgenlist library is used for MSDTC support and isn't needed unless _HANDLE_ENLIST_IN_DTC_ is defined. A #pragma in loadlib.c seems to be the cause. I lready fixed the bug in my local source for 8.2.0402. regards, Hiroshi Inoue