pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Byron Nikolaidis <byronn@insightdist.com>
To: angg <angg@vng.ru>
Cc: pgsql-interfaces@postgresql.org <pgsql-interfaces@postgresql.org>
Subject: Re: [INTERFACES] C++ Builder (Delphi), ODBC and large objects
Date: Thu, 22 Oct 1998 10:59:30 -0400
Message-ID: <362F4852.5302207B@insightdist.com> (raw)
References: <01bdfdab$c94f6320$0b02a8c0@mis1>



angg wrote:

> Byron, I tried to build driver with MS Visual C++ 5.0, but the proces failed
> with the following messages:
> [...]
> C:\Program Files\DevStudio\MyProjects\psqlodbc\execute.c(132) : warning
> C4229: anachronism used : modifiers on data are ignored
> gpps.c
> info.c
> C:\Program Files\DevStudio\MyProjects\psqlodbc\info.c(846) : error C2065:
> 'SQL_NUM_FUNCTIONS' : undeclared identifier
> C:\Program Files\DevStudio\MyProjects\psqlodbc\info.c(848) : error C2065:
> 'SQL_EXT_API_START' : undeclared identifier
> C:\Program Files\DevStudio\MyProjects\psqlodbc\info.c(848) : error C2065:
> 'SQL_EXT_API_LAST' : undeclared identifier
> [...]
>
> It isn't my compiler so I'm not sure it was installed properly. So far as
> can understand some *.h files are absent. Can you tell me which. I'm now
> seeking another opportunity to build the driver. I work to the North of
> Russia and it isn't a simple task :-).
>
> Mikhail.

Since I use VC4.0, which includes the old sql include files, there is not a
problem.

On VC5.0, the newer odbc 3.0 sql include files are used.  Therefore, the driver
needs to specify the ODBCVER explicitly, otherwise it defaults to 3.0 which is
the problem.

Solution:

1.  Somewhere in "psqlodbc.h", add the following line:

# define ODBCVER   0x0200

2. In connection.h, move the #include "psqlodbc.h" to prior to #ifdef HAVE_IODBC

3. In statement.h, move the #include "psqlodbc.h" to prior to #ifdef HAVE_IODBC

4. In convert.c, add the line #include "psqlodbc.h" prior to #ifdef HAVE_IODBC


As for the anachronism thing, you can either ignore it or just remove the
SQL_API keyword.


I will try to get these corrections into the next release.

Thanks,

Byron





view thread (19+ messages)  latest in thread

Message-ID: <362F4852.5302207B@insightdist.com>
Permalink:  ../362F4852.5302207B@insightdist.com/
Also on:    postgresql.org/message-id/362F4852.5302207B@insightdist.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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: byronn@insightdist.com, angg@vng.ru
  Subject: Re: [INTERFACES] C++ Builder (Delphi), ODBC and large objects
  In-Reply-To: <362F4852.5302207B@insightdist.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