7 messages in com.mysql.lists.plusplusRe: Query returns substrings and zero...
FromSent OnAttachments
mysql++10 Oct 2004 09:42 
Chris Frey10 Oct 2004 10:14 
Tobias Bergmann11 Oct 2004 00:41 
Chris Frey11 Oct 2004 13:50 
Warren Young11 Oct 2004 13:58 
Tobias Bergmann21 Oct 2004 07:23 
Warren Young21 Oct 2004 14:12 
Subject:Re: Query returns substrings and zero-ints
From:Tobias Bergmann (tobi@tobipage.de)
Date:10/21/2004 07:23:50 AM
List:com.mysql.lists.plusplus

Hi,

I have not found anything yet. Actually I loose overview with gdb/ddd quite often.

I also tried to compile mysql++ and the test program again.

NO_LONG_LONGS does not change anything

and finally I found the CXXFLAG -m32 but I cant compile this way: /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-redhat-linux/3.3.3/../../../../lib64/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/gcc-lib/x86_64-redhat-linux/3.3.3/../../../../lib64/libz.a when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient

Do you have any more idears/hints?

Warren Young wrote:

Chris Frey wrote:

to debug such a thing would require a person with a 64-bit setup stepping through the code and checking the data at every level, even into the mysql C lib possibly (although if the console client works, it's likely only in mysql++).

It's quite likely a MySQL++ problem. 64-bit integer support is very spotty, largely because the library's cross-platform nature means we can't handle wide integers in a uniform way.

No doubt it can be made to work, but you have to be very careful that you don't break platforms like Windows where things like 'long long' do not exist.

In short, Patches Thoughtfully Considered^TM.