From: Walt H <waltabbyh@comcast.net>
To: pgsql-odbc@postgresql.org
Subject: Error in convert.c when compiling w/ odbcver=0x0300
Date: Tue, 07 Oct 2003 19:00:56 -0700
Message-ID: <3F836FD8.4000206@comcast.net> (raw)
Hello,
In my never ending quest in an attempt to get PostgreSQL to work with
blob data within our application, I attempted to compile the latest odbc
drivers with odbc v. 3.00 support. This fails with:
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g
-O2 -c -o convert.lo `test -f 'convert.c' || echo './'`convert.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c convert.c -MT convert.lo -MD
-MP -MF .deps/convert.TPlo -fPIC -DPIC -o convert.lo
convert.c: In function `copy_and_convert_field':
convert.c:1194: incompatible types in assignment
convert.c:1196: incompatible types in assignment
convert.c:1202: incompatible types in assignment
convert.c:1204: incompatible types in assignment
This code evidently compiles in Windows since the odbc driver appears to
be v. 3.00 capable. I'm attempting this on Linux using gcc-3.2.3 and
glibc-2.3.2. I've tried various other compilers including gcc-2.95.3
and gcc-3.3.1, and have been met with the same results.
Ultimately, I'm trying to use odbc to connect to PostgreSQL within our
app, which is an Omnis Studio application. I need to be able to
store/retrieve binary (blob) data, and have been only partially
successful. Any ideas for a code fix / workaround? I've been
unsuccessful in my attempts so far with odbc < 3.00 - I've had partial
success when running our app under wine and using the native windows
ODBC driver, but due to the added layers/complexity, I'm not sure I
trust the results. Hence the need for native linux w/ odbc v. 3.00 Any
help is appreciated. Thanks,
-Walt
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: waltabbyh@comcast.net
Subject: Re: Error in convert.c when compiling w/ odbcver=0x0300
In-Reply-To: <3F836FD8.4000206@comcast.net>
References: <3F836FD8.4000206@comcast.net>
* 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