[cvsnt-dev] Problems compiling on 64bit systems if ODBC is enabled
Tony Hoyle
tony.hoyle at march-hare.com
Thu Nov 16 15:48:42 GMT 2006
Andreas Tscharner wrote:
> Hello Arthur, hello Tony,
>
> If ODBC is enabled on 64bit systems, the following error occurs:
>
> ../odbc/OdbcConnection.cpp: In member function 'virtual CSqlRecordsetPtr
> COdbcConnection::Execute(const char*, ...)':
> ../odbc/OdbcConnection.cpp:134: error: cannot convert 'int*' to SQLLEN*'
> for argument '10' to 'SQLRETURN SQLBindParameter(void*, SQLUSMALLINT,
> SQLSMALLINT, SQLSMALLINT, SQLSMALLINT, SQLULEN, SQLSMALLINT, void*,
> SQLLEN, SQLLEN*)'
>
>
> One of the Debian users (Kurt Roeckx <kurt at roeckx.be>) provided a patch
> (attached).
>
> Is it possible to include it for the next stable release? Thanks.
>
I looked at that before - it looks like a debian issue.
The problem is SQLLEN is not the correct prototype for those functions,
and other platforms (eg. osx, solairs) will fail to compile if that
patch is used (and it's not even a #define so you can't conditionally
define it). You may have to just have it as a debian specific patch.
Tony
More information about the cvsnt-dev
mailing list