64bit client to 32bit kdb+ server

Hi,

Im trying to use 32 bit kdb+ server in my 64 bit application.

32 bit version of sample client program “csv.c” works fine, but not 64 bit. It prints “type 0” (result->t == 0).

I can write data to 32 bit kdb+ database from 64 bit client but can’t read anything (the same problem as above).

Is it possible to use 32 bit kdb+ in 64 bit application?

Regards,

Marek

yes, 64bit apps binding with 64bit c.o can communicate fine with 32bit kdb+.
what is your compile cmd line for your 64bit app?

64 bit version:

$ gcc -DKXVER=3 csv.c c64.o -lpthread

$ ./a.out 

type 0

32 bit version

$gcc -m32 -DKXVER=3 csv.c c32.o -lpthread

$ ./a.out 

a,b,c,d

0,9,enfe,

1,8,plho,a

2,7,nnil,ab

3,6,glch,abc

4,5,gkpm,abcd

5,4,bghg,abcde

6,3,ifna,abcdef

7,2,fohf,abcdefg

8,1,kdjb,abcdefgh

9,0,eegn,abcdefghi

code from here: http://code.kx.com/wsvn/code/contrib/wiki/csv.c

gcc version 4.7.2

kdb+ server started with: ./q -p 5001

W dniu wtorek, 25 listopada 2014 13:54:45 UTC+1 u?ytkownik Charles Skelton napisa?:

yes, 64bit apps binding with 64bit c.o can communicate fine with 32bit kdb+.
what is your compile cmd line for your 64bit app?

Thank you Charles for confirmation.

I tried the same procedure on other system and it works.
Something must be wrong with my system configuration.

Marek

W dniu wtorek, 25 listopada 2014 13:54:45 UTC+1 u?ytkownik Charles Skelton napisa?:

yes, 64bit apps binding with 64bit c.o can communicate fine with 32bit kdb+.
what is your compile cmd line for your 64bit app?