C++ interfacing with KDB

Hello Everyone, I am new to kdb+. As my first step towards the Qworld, I am writing a C++ program which runs a simple select querythrough c interface on kdb+ database. But i am not very clear as tohow to convert the returned K data structure to a C++ data structure.Are there any sample programs which I can look into for some inputs.Any other ideas would be helpful.-Satish

an example picking apart a result in c

https://code.kx.com/trac/attachment/wiki/Cookbook/InterfacingWithC/csv.c

use anonymous/anonymous to access code.kx.com

thanks

Hi Charls/ Satish,I am trying to run csv.c in Visual Studio 2005. But it’s giving meerror as below…1>KDB_TEST.obj : error LNK2019: unresolved external symbol _ktdreferenced in function _maintried to google the problem and resolve it. But seems all thesolutions available are about linking the libraries.Please let me know what I am missing here.Thanks,VishalOn Aug 23, 10:41?am, Charles Skelton <char…> wrote:> an example picking apart a result in c>> https://code.kx.com/trac/attachment/wiki/Cookbook/InterfacingWithC/csv.c&gt;&gt; use anonymous/anonymous to access code.kx.com>> thanks>>>> On Tue, Aug 23, 2011 at 3:38 PM, Satish <computerb…> wrote:> > Hello Everyone,> > ? ? ? ? ? ? ? ? ? ? I am new to kdb+. As my first step towards the Q> > world, I am writing a C++ program which runs a simple select query> > through c interface on kdb+ database. But i am not very clear as to> > how to convert the returned K data structure to a C++ data structure.> > Are there any sample programs which I can look into for some inputs.> > Any other ideas would be helpful.>> > -Satish>> > –> >

Submitted via Google Groups</computerb…></char…>

for 32bit, you need to link with

http://kx.com/q/w32/c.lib

and then at runtime have c.dll present.

Or link with just the c.obj file

http://kx.com/q/w32/c.obj

For 64bit, just replace those paths above with w64 instead of w32

thanks