Thread: Can't compile psqlODBC on Windows XP using Visual Studio .NET

Can't compile psqlODBC on Windows XP using Visual Studio .NET

From
anthony@childers.com
Date:
I have followed the directions at
http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-win32 but can't get
psqlODBC on Windows XP using Visual Studio .NET. If anyone can help me work
through this I would be happy to write an update of the Win32 compile
instructions for the website.

I have worked through all of the problems except the following two fatal errors:
 ...\pgsqlodbc\results.c(1308): error C2039: 'rowset_size' : is not a member of
'ARDFields_'
 ...\pgsqlodbc\results.c(1314): error C2039: 'rowset_size' : is not a member of
'ARDFields_'

I am using the source for psqlODBC 7.03.02 and postgreSQL 7.3.2 downloaded from
ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/

Thanks,
   Anthony Childers

Re: Can't compile psqlODBC on Windows XP using Visual Studio .NET

From
anthony@childers.com
Date:
Is anyone at all concerned about this?
I have had three people try to compile the Win32 dll and none of them have had any luck.
Is there a patch to one of the c files that hasn't been checked into CVS?

Any help would be appreciated.

Thanks,
     Anthony Childers
On Tue, 20 Jan 2004 13:02:27 -0500 (EST), anthony@childers.com wrote:

> X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org
> Message-Id: <20040120100227.1083.h012.c000.wm@mail.childers.com.criticalpath.net>
> From: anthony@childers.com
> X-Mailing-List: pgsql-odbc
> X-Mailer: Web Mail 5.6.0-2_sol28
> X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME
> X-Virus-Scanned: by amavisd-new at postgresql.org
> Date: Tue, 20 Jan 2004 13:02:27 -0500 (EST)
> Received: (cpmta 14520 invoked from network); 20 Jan 2004 10:12:53 -0800
> Received: from 207.173.200.215 (HELO hosting.commandprompt.com)
>     by smtp.c000.snv.cp.net (209.228.32.58) with SMTP; 20 Jan 2004 10:12:53 -0800
> Received: from postgresql.org (svr1.postgresql.org [200.46.204.71])
>     by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id i0KI8jk10357;
>     Tue, 20 Jan 2004 10:09:05 -0800
> Received: from localhost (neptune.hub.org [200.46.204.2])
>     by svr1.postgresql.org (Postfix) with ESMTP id EC10ED1E8D6
>     for <pgsql-odbc-postgresql.org@localhost.postgresql.org>; Tue, 20 Jan 2004 18:03:07 +0000 (GMT)
> Received: from svr1.postgresql.org ([200.46.204.71])
>     by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024)
>     with ESMTP id 90022-06
>     for <pgsql-odbc-postgresql.org@localhost.postgresql.org>;
>     Tue, 20 Jan 2004 14:02:37 -0400 (AST)
> Received: from c000.snv.cp.net (h001.c000.snv.cp.net [209.228.32.65])
>     by svr1.postgresql.org (Postfix) with SMTP id A58D8D1E897
>     for <pgsql-odbc@postgresql.org>; Tue, 20 Jan 2004 14:02:28 -0400 (AST)
> Received: (cpmta 920 invoked from network); 20 Jan 2004 10:02:27 -0800
> Received: from 209.228.32.76 (HELO mail.childers.com.criticalpath.net)
>     by smtp.childers.com (209.228.32.65) with SMTP; 20 Jan 2004 10:02:27 -0800
> Received: from [192.146.101.12] by mail.childers.com with HTTP;
>     Tue, 20 Jan 2004 13:02:27 -0500 (EST)
> X-Sent: 20 Jan 2004 18:02:27 GMT
> Content-Disposition: inline
> X-Sent-From: anthony@childers.com
> Content-Type: text/plain; charset=iso-8859-1
> X-Received: 20 Jan 2004 18:12:53 GMT
> Subject: [ODBC] Can't compile psqlODBC on Windows XP using Visual Studio .NET
> X-Spam-Level: *
> Precedence: bulk
> Delivered-To: childers.com%anthony@childers.com
> Return-Path: <pgsql-odbc-owner+M3689@postgresql.org>
> Content-Transfer-Encoding: 7bit
> MIME-Version: 1.0
> To: pgsql-odbc@postgresql.org
> Sender: pgsql-odbc-owner@postgresql.org
>
> I have followed the directions at
> http://gborg.postgresql.org/project/psqlodbc/genpage.php?doc-win32 but can't get
> psqlODBC on Windows XP using Visual Studio .NET. If anyone can help me work
> through this I would be happy to write an update of the Win32 compile
> instructions for the website.
>
> I have worked through all of the problems except the following two fatal errors:
>  ...\pgsqlodbc\results.c(1308): error C2039: 'rowset_size' : is not a member of
> 'ARDFields_'
>  ...\pgsqlodbc\results.c(1314): error C2039: 'rowset_size' : is not a member of
> 'ARDFields_'
>
> I am using the source for psqlODBC 7.03.02 and postgreSQL 7.3.2 downloaded from
> ftp://ftp9.us.postgresql.org/pub/mirrors/postgresql/
>
> Thanks,
>    Anthony Childers
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match

Re: Can't compile psqlODBC on Windows XP using Visual Studio .NET

From
"Hiroshi Inoue"
Date:
> -----Original Message-----
> From: anthony@childers.com
>
> Is anyone at all concerned about this?
> I have had three people try to compile the Win32 dll and none
> of them have had any luck.
> Is there a patch to one of the c files that hasn't been
> checked into CVS?
>
> Any help would be appreciated.

Please add /D DRIVER_CURSOR_IMPLEMENT to your compile option.

regards,
Hiroshi Inoue


Re: Can't compile psqlODBC on Windows XP using Visual Studio .NET

From
anthony@childers.com
Date:
Hiroshi,

Thanks, I'll give it a try.
On Wed, 21 Jan 2004 23:32:49 +0900, "Hiroshi Inoue" wrote:

> Importance: Normal
> Message-Id: <025001c3e02b$722838c0$3d283ddb@PbgX>
> From: "Hiroshi Inoue" <inoue@tpf.co.jp>
> X-Priority: 3 (Normal)
> X-Mailer: Microsoft Outlook, Build 10.0.4510
> X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165
> Date: Wed, 21 Jan 2004 23:32:49 +0900
> Received: (cpmta 7569 invoked from network); 21 Jan 2004 06:32:56 -0800
> Received: from 210.161.239.34 (HELO sd.tpf.co.jp)
>     by smtp.c000.snv.cp.net (209.228.32.58) with SMTP; 21 Jan 2004 06:32:56 -0800
> Received: (qmail 8160 invoked from network); 21 Jan 2004 23:32:52 +0900
> Received: from unknown (HELO PbgX) (219.61.40.61)
>     by smtp.tpf.co.jp with SMTP; 21 Jan 2004 23:32:52 +0900
> Cc: <pgsql-odbc@postgresql.org>
> X-Msmail-Priority: Normal
> Content-Type: text/plain;
>     charset="us-ascii"
> In-Reply-To: <20040121053837.29974.h003.c000.wm@mail.childers.com.criticalpath.net>
> X-Received: 21 Jan 2004 14:32:56 GMT
> Subject: RE: [ODBC] Can't compile psqlODBC on Windows XP using Visual Studio .NET
> X-Authentication: inoue was authenticated by smtp.tpf.co.jp
>     at
>     21 Jan 2004 23:32:52 +0900
> Delivered-To: childers.com%anthony@childers.com
> Return-Path: <inoue@tpf.co.jp>
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> To: <anthony@childers.com>
>
> > -----Original Message-----
> > From: anthony@childers.com
> >
> > Is anyone at all concerned about this?
> > I have had three people try to compile the Win32 dll and none
> > of them have had any luck.
> > Is there a patch to one of the c files that hasn't been
> > checked into CVS?
> >
> > Any help would be appreciated.
>
> Please add /D DRIVER_CURSOR_IMPLEMENT to your compile option.
>
> regards,
> Hiroshi Inoue