C++ interfacing with KDB

1,044 views
Skip to first unread message

Satish

unread,
Aug 23, 2011, 10:38:39 AM8/23/11
to Kdb+ Personal Developers
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

Charles Skelton

unread,
Aug 23, 2011, 10:41:27 AM8/23/11
to personal...@googlegroups.com
an example picking apart a result in c


use anonymous/anonymous to access code.kx.com

thanks


--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To post to this group, send email to personal...@googlegroups.com.
To unsubscribe from this group, send email to personal-kdbpl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.


Vishal

unread,
Aug 24, 2011, 12:34:46 AM8/24/11
to Kdb+ Personal Developers
Hi Charls/ Satish,

I am trying to run csv.c in Visual Studio 2005. But it's giving me
error as below...
1>KDB_TEST.obj : error LNK2019: unresolved external symbol _ktd
referenced in function _main

tried to google the problem and resolve it. But seems all the
solutions available are about linking the libraries.
Please let me know what I am missing here.

Thanks,
Vishal
> >http://groups.google.com/group/personal-kdbplus?hl=en.- Hide quoted text -
>
> - Show quoted text -

Charles Skelton

unread,
Aug 24, 2011, 3:12:41 AM8/24/11
to personal...@googlegroups.com
for 32bit, you need to link with


and then at runtime have c.dll present.

Or link with just the c.obj file


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

thanks
Reply all
Reply to author
Forward
0 new messages