Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ue3aS-0001US-Cx for pgsql-odbc@arkaria.postgresql.org; Sun, 19 May 2013 13:23:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ue3aR-0006Hr-Lv for pgsql-odbc@arkaria.postgresql.org; Sun, 19 May 2013 13:23:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ue3aQ-0006Hl-Sa for pgsql-odbc@postgresql.org; Sun, 19 May 2013 13:23:43 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ue3aJ-0004Ap-Gl for pgsql-odbc@postgresql.org; Sun, 19 May 2013 13:23:41 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Ue3aI-0002XF-29 for pgsql-odbc@postgresql.org; Sun, 19 May 2013 06:23:34 -0700 Date: Sun, 19 May 2013 06:23:34 -0700 (PDT) From: ljwilson To: pgsql-odbc@postgresql.org Message-ID: <1368969814008-5756122.post@n5.nabble.com> Subject: Compiling psqlODBC on Windows with MS VC++ 2005 Express MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.9 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org With the latest psqlODBC 09.02.0100 prep, I have to make one change to compile using MS VC++ 2005 Express (32-bit version of drivers): In psqlodbc.h (my addition in bold) /* File: psqlodbc.h * * Description: This file contains defines and declarations that are related to * the entire driver. * * Comments: See "readme.txt" for copyright and license information. */ #ifndef __PSQLODBC_H__ #define __PSQLODBC_H__ /* #define __MS_REPORTS_ANSI_CHAR__ */ #ifndef WIN32 #include "config.h" #else #define WIN32_LEAN_AND_MEAN #include *#if (_MSC_VER == 1400) /* in case of VC++ 2005 */ #include #endif /* _MSC_VER == 1400 */* #endif For a detailed discussion of why we need winsock2.h see: http://stackoverflow.com/questions/1372480/c-redefinition-header-files I'm curious what build environment is currently being used--is there something I can change on my end to not have to edit psqlodbc.h, or can we add the above to psqlodbc.h to fix it for MS VC++ 2005 Express? Also, could we change the docs\win32-compilation.html file to reference 9.2 instead of 9.1? (And maybe fix the typo of "Valiable" to "Variable"?) Thanks...jack -- View this message in context: http://postgresql.1045698.n5.nabble.com/Compiling-psqlODBC-on-Windows-with-MS-VC-2005-Express-tp5756122.html Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc