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w0KcHNxbG9kYmMucmMoMTApIDogZmF0YWwg
ZXJyb3IgUkMxMDE1OiBjYW5ub3Qgb3BlbiBpbmNsdWRlIGZpbGUgJ21mYy9h
ZnhyZXMuaCcuDQpOTUFLRSA6IGZhdGFsIGVycm9yIFUxMDc3OiAnIkM6XFBy
b2dyYW0gRmlsZXNcTWljcm9zb2Z0IFZpc3VhbCBTdHVkaW8gOFxWQ1xCSU5c
cg0KYy5leGUiJyA6IHJldHVybiBjb2RlICcweDEnDQpTdG9wLg0KDQotLQ0K
UmVnYXJkcw0KU2FpbGVzaCBLcmlzaG5hbXVydGh5DQpDby1Gb3VuZGVyICYg
Q2hpZWYgQXJjaGl0ZWN0DQpUcnV2aXNvLCBJbmMuDQpodHRwOi8vd3d3LnRy
dXZpc28uY29tDQpbV106ICg2NTApIDI0Mi0zNTAzDQpbQ106ICg2NTApIDgw
NC02NTg1DQrCoA0KDQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKGVu
ZCBvZiBicm9hZGNhc3QpLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tClRJ
UCA2OiBleHBsYWluIGFuYWx5emUgaXMgeW91ciBmcmllbmQK
Re: Build problems with MS VC++ Express 2005
am 19.07.2007 02:02:15 von Hiroshi Saito
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 -----=20
From: "Sailesh Krishnamurthy"
> Hello
>
> Iâ=99m having trouble building the ODBC driver on Windows with MS =
VC++ Express 2005.
>
> I already visited the recent thread:=20
> http://archives.postgresql.org/pgsql-odbc/2007-06/msg00006.p hp
>
> Unfortunately, the suggestions made by Mark Cave-Ayland donâ=99t w=
ork for me â=B9
>
> Iâ=99ve done the following:
>
> 1. Modified my stock 8.2.4 PostgreSQL interface to include the dev stuf=
f
> 2. Edited psqlodbc.rc to change: #include â=9Cafxres.hâ=9D to=
#include â=9Cmfc/afxres.hâ=9D
> 3. Copied C:\OpenSSL\lib\VC\ssleay32MT.lib to C:\OpenSSL\lib\VC\ssleay3=
2.lib
> 4. Installed Microsoft VC++ 2005 Express (Iâ=99m cheap)
> 5. Installed Microsoft Windows SDK
>
> When I try to build using VC++ IDE, I get a whole set of errors that sa=
y: cannot open=20
> "windows.h"
>
> When I try to build using nmake (whether I use the shell thatâ=99s=
part of the windows SDK=20
> or VC++) I end up with an error that says cannot open "mfc/afxres.h" (p=
rior to the editing=20
> 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=20
> C1083: Cannot open include file: 'windows.h': No such file or directory
> 1>win_md5.c
> ... ....
>
> Case 2: Building with nmake
> ==================== =====
===3D
>
> C:\Documents and Settings\sailesh\Desktop\code\head-psqlodbc>nmake MTDC=
=3Dno /f wi
> n32.mak Release=3DCFG 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/afx=
res.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
>=20
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: Build problems with MS VC++ Express 2005
am 19.07.2007 10:58:36 von Dave Page
Hiroshi Saito wrote:
> Hi Sailesh-san.
>
> It seems that you need to arrange according to the following.
> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Agreed - and to avoid any future confusion, follow *all* steps in there,
including any marked as optional.
Regards, Dave
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: Build problems with MS VC++ Express 2005
am 19.07.2007 19:32:53 von Sailesh Krishnamurthy
Hello Hiroshi-San and Dave
Thanks a lot for the tips. I'm quite the windows noob.=20
I managed to get things working fine now. It might be nice to be add
these links to the "Compiling on win32 page".=20
One more thing I found while building the Installer: before building the
installer it's necessary to run the build twice, once with
ANSI_VERSION=3Dyes and once with ANSI_VERSION=3Dno - this way we get both
the Release and the MultiByteRelease directories, which are both
required by the installer.
--
Regards
Sailesh Krishnamurthy
Co-Founder & Chief Architect
Truviso, Inc.
http://www.truviso.com
[W]: (650) 242-3503
[C]: (650) 804-6585
=20
-----Original Message-----
From: Dave Page [mailto:dpage@postgresql.org]=20
Sent: Thursday, July 19, 2007 1:59 AM
To: Hiroshi Saito
Cc: Sailesh Krishnamurthy; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Build problems with MS VC++ Express 2005
Hiroshi Saito wrote:
> Hi Sailesh-san.
>=20
> It seems that you need to arrange according to the following.
> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Agreed - and to avoid any future confusion, follow *all* steps in there,
including any marked as optional.
Regards, Dave
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Re: Build problems with MS VC++ Express 2005
am 19.07.2007 21:02:39 von Sailesh Krishnamurthy
Folks
Just FYI, but I managed to find a simpler alternate solution to what was
described in the link (of course, both Visual C++ Express and the
Platform SDK must be installed).=20
I just run the following script (I call it setup.bat) in a normal shell
and that sets up everything I need to build ODBC using nmake:=20
C:\Documents and Settings\sailesh\Desktop\code>type setup.bat
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd"
C:\Documents and Settings\sailesh\Desktop\code>setup
C:\Documents and Settings\sailesh\Desktop\code>call "C:\Program
Files\Microsoft
Visual Studio 8\VC\vcvarsall.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Attempting to detect a Microsoft Visual Studio installation
Targeting Windows XP 32 DEBUG
C:\Documents and Settings\sailesh\Desktop\code>
--
Regards
Sailesh Krishnamurthy
Co-Founder & Chief Architect
Truviso, Inc.
http://www.truviso.com
[W]: (650) 242-3503
[C]: (650) 804-6585
=20
-----Original Message-----
From: Dave Page [mailto:dpage@postgresql.org]=20
Sent: Thursday, July 19, 2007 1:59 AM
To: Hiroshi Saito
Cc: Sailesh Krishnamurthy; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Build problems with MS VC++ Express 2005
Hiroshi Saito wrote:
> Hi Sailesh-san.
>=20
> It seems that you need to arrange according to the following.
> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Agreed - and to avoid any future confusion, follow *all* steps in there,
including any marked as optional.
Regards, Dave
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: Build problems with MS VC++ Express 2005
am 19.07.2007 21:24:14 von Sailesh Krishnamurthy
Trust Outlook to mess up my email ...=20
My script, setup.bat contains the following:
==================== =====3D=
==================== =====3D=
=================3D
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd"
==================== =====3D=
==================== =====3D=
=================3D
--
Regards
Sailesh Krishnamurthy
Co-Founder & Chief Architect
Truviso, Inc.
http://www.truviso.com
[W]: (650) 242-3503
[C]: (650) 804-6585
=20
-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Sailesh
Krishnamurthy
Sent: Thursday, July 19, 2007 12:03 PM
To: Dave Page; Hiroshi Saito
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Build problems with MS VC++ Express 2005
Folks
Just FYI, but I managed to find a simpler alternate solution to what was
described in the link (of course, both Visual C++ Express and the
Platform SDK must be installed).=20
I just run the following script (I call it setup.bat) in a normal shell
and that sets up everything I need to build ODBC using nmake:=20
C:\Documents and Settings\sailesh\Desktop\code>type setup.bat
call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
call "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd"
C:\Documents and Settings\sailesh\Desktop\code>setup
C:\Documents and Settings\sailesh\Desktop\code>call "C:\Program
Files\Microsoft
Visual Studio 8\VC\vcvarsall.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Attempting to detect a Microsoft Visual Studio installation
Targeting Windows XP 32 DEBUG
C:\Documents and Settings\sailesh\Desktop\code>
--
Regards
Sailesh Krishnamurthy
Co-Founder & Chief Architect
Truviso, Inc.
http://www.truviso.com
[W]: (650) 242-3503
[C]: (650) 804-6585
=20
-----Original Message-----
From: Dave Page [mailto:dpage@postgresql.org]=20
Sent: Thursday, July 19, 2007 1:59 AM
To: Hiroshi Saito
Cc: Sailesh Krishnamurthy; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Build problems with MS VC++ Express 2005
Hiroshi Saito wrote:
> Hi Sailesh-san.
>=20
> It seems that you need to arrange according to the following.
> http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
Agreed - and to avoid any future confusion, follow *all* steps in there,
including any marked as optional.
Regards, Dave
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org