Re: [INTERFACES] C++ Builder (Delphi), ODBC and large objects

Поиск
Список
Период
Сортировка
От Byron Nikolaidis
Тема Re: [INTERFACES] C++ Builder (Delphi), ODBC and large objects
Дата
Msg-id 362F4852.5302207B@insightdist.com
обсуждение исходный текст
Ответ на [INTERFACES] C++ Builder (Delphi), ODBC and large objects  ("angg" <angg@vng.ru>)
Список pgsql-interfaces

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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] PgConnection
Следующее
От: "Gregory W Burnham"
Дата:
Сообщение: Error Message