Compiling psqlODBC on Windows with MS VC++ 2005 Express

From: ljwilson <ljwilson(at)digitalav(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Compiling psqlODBC on Windows with MS VC++ 2005 Express
Date: 2013-05-19 13:23:34
Message-ID: 1368969814008-5756122.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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 <windows.h>
*#if (_MSC_VER == 1400) /* in case of VC++ 2005 */
#include <winsock2.h>
#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
<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.

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Jan-Peter Seifert 2013-05-19 19:44:58 Re: Problem with special characters in password when using SQLDriverConnect
Previous Message Hiroshi Saito 2013-05-18 14:52:28 Re: Vote Release number of the next.