Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 145449FBDFF for ; Wed, 18 Jul 2007 21:02:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05421-07 for ; Wed, 18 Jul 2007 21:02:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.guitar.ocn.ne.jp (guitar.ocn.ne.jp [61.207.12.174]) by postgresql.org (Postfix) with ESMTP id 0BC4C9FBBA1 for ; Wed, 18 Jul 2007 21:02:11 -0300 (ADT) Received: from HP22720319231 (221x112x108x194.ap221.ftth.ucom.ne.jp [221.112.108.194]) by smtp.guitar.ocn.ne.jp (Postfix) with SMTP id B6CD93711; Thu, 19 Jul 2007 09:02:09 +0900 (JST) Message-ID: <000c01c7c998$109bdad0$c601a8c0@HP22720319231> From: "Hiroshi Saito" To: "Sailesh Krishnamurthy" Cc: References: <3369404FF677C742A08512B138D3DFBD22D70B@BE19.exg3.exghost.com> Subject: Re: Build problems with MS VC++ Express 2005 Date: Thu, 19 Jul 2007 09:02:15 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/35 X-Sequence-Number: 9090 Hi Sailesh-san. It seems that you need to arrange according to the following. http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ Regards, Hiroshi Saito ----- Original Message ----- From: "Sailesh Krishnamurthy" > Hello > > I’m having trouble building the ODBC driver on Windows with MS VC++ Express 2005. > > I already visited the recent thread: > http://archives.postgresql.org/pgsql-odbc/2007-06/msg00006.php > > Unfortunately, the suggestions made by Mark Cave-Ayland don’t work for me ☹ > > I’ve done the following: > > 1. Modified my stock 8.2.4 PostgreSQL interface to include the dev stuff > 2. Edited psqlodbc.rc to change: #include “afxres.h” to #include “mfc/afxres.h” > 3. Copied C:\OpenSSL\lib\VC\ssleay32MT.lib to C:\OpenSSL\lib\VC\ssleay32.lib > 4. Installed Microsoft VC++ 2005 Express (I’m cheap) > 5. Installed Microsoft Windows SDK > > When I try to build using VC++ IDE, I get a whole set of errors that say: cannot open > "windows.h" > > When I try to build using nmake (whether I use the shell that’s part of the windows SDK > or VC++) I end up with an error that says cannot open "mfc/afxres.h" (prior to the editing > of psqlodbc.rc I got an error that says cannot open "afxres.h"). > > Any suggestions ? > > Detailed error messages follows: > > Case 1: Building with VC++ IDE > ============================== > > 1>------ Build started: Project: psqlODBC, Configuration: Debug Win32 ------ > 1>Compiling... > 1>win_unicode.c > 1>c:\documents and settings\sailesh\desktop\code\psqlodbc\psqlodbc.h(21) : fatal error > C1083: Cannot open include file: 'windows.h': No such file or directory > 1>win_md5.c > ... .... > > Case 2: Building with nmake > =========================== > > C:\Documents and Settings\sailesh\Desktop\code\head-psqlodbc>nmake MTDC=no /f wi > n32.mak Release=CFG All > > Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 > Copyright (C) Microsoft Corporation. All rights reserved. > > Building the PostgreSQL Unicode 3.5 Driver for Win32... > > No configuration specified. Defaulting to Release. > > Using default PostgreSQL Include directory: C:\Program Files\PostgreSQL\8.2\incl > ude > Using default PostgreSQL Library directory: C:\Program Files\PostgreSQL\8.2\lib\ > ms > Using default OpenSSL Include directory: C:\OpenSSL\include > Using default OpenSSL Library directory: C:\OpenSSL\lib\VC > Linking static Multithread library > rc.exe /l 0x809 /d "MULTIBYTE" /d "NDEBUG" /fo.\Release\psqlodbc.res /D > "UNICODE_SUPPORT" psqlodbc.rc > psqlodbc.rc(10) : fatal error RC1015: cannot open include file 'mfc/afxres.h'. > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\r > c.exe"' : return code '0x1' > Stop. > > -- > Regards > Sailesh Krishnamurthy > Co-Founder & Chief Architect > Truviso, Inc. > http://www.truviso.com > [W]: (650) 242-3503 > [C]: (650) 804-6585 > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >