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.