pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ljwilson <ljwilson@digitalav.com>
To: pgsql-odbc@postgresql.org
Subject: Compiling psqlODBC on Windows with MS VC++ 2005 Express
Date: Sun, 19 May 2013 06:23:34 -0700 (PDT)
Message-ID: <1368969814008-5756122.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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-tp5756...
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



view thread (6+ messages)  latest in thread

Message-ID: <1368969814008-5756122.post@n5.nabble.com>
Permalink:  ../1368969814008-5756122.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1368969814008-5756122.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: ljwilson@digitalav.com
  Subject: Re: Compiling psqlODBC on Windows with MS VC++ 2005 Express
  In-Reply-To: <1368969814008-5756122.post@n5.nabble.com>
  References: <1368969814008-5756122.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox