I wrote a simple Win32 C app to connect to KDB+ and insert data. Thatworks fine. Now I’m trying to register callbacks with sd1(conn, foo),and I get the following.KDBTest error LNK2019: unresolved external symbol _sd1 referenced infunction “void __cdecl func(void)” (?func@@YAXXZ)I’m following what’s described in https://code.kx.com/trac/wiki/Cookbook/InterfacingWithCI’m including k.h and linking with c.lib. If I add q.lib, it willlink, but won’t run. I get “The application has failed to startbecause q.exe was not found. Re-installing the application may fixthis problem”.In what lib are sd1() and sd0()?Also, how do I set a filter on the callbacks? My app needs to becalled back with a filter of something as simple as “lastname ‘anderson’”.Thanks
X-Mailer: Apple Mail (2.936)sd1 and sd0 are callbacks available only inside kdb when you extend it with a c module.On 3 Sep 2009, at 19:10, Richard Last wrote:>> I wrote a simple Win32 C app to connect to KDB+ and insert data. That> works fine. Now I’m trying to register callbacks with sd1(conn, foo),> and I get the following.>> KDBTest error LNK2019: unresolved external symbol _sd1 referenced in> function “void __cdecl func(void)” (?func@@YAXXZ)>> I’m following what’s described in https://code.kx.com/trac/wiki/Cookbook/InterfacingWithC\>> I’m including k.h and linking with c.lib. If I add q.lib, it will> link, but won’t run. I get “The application has failed to start> because q.exe was not found. Re-installing the application may fix> this problem”.>> In what lib are sd1() and sd0()?>> Also, how do I set a filter on the callbacks? My app needs to be> called back with a filter of something as simple as “lastname > ‘anderson’”.>>> Thanks>> >
Ok, so I guess there’s no similar function on the client side, unlessI’m using KDB+Tick?On Sep 3, 11:32?am, Felix Lungu <felix.lu…> wrote:> sd1 and sd0 are callbacks available only inside kdb when you extend it ?> with a c module.>> On 3 Sep 2009, at 19:10, Richard Last wrote:>>>>>> > I wrote a simple Win32 C app to connect to KDB+ and insert data. ?That> > works fine. ?Now I’m trying to register callbacks with sd1(conn, foo),> > and I get the following.>> > KDBTest error LNK2019: unresolved external symbol _sd1 referenced in> > function “void __cdecl func(void)” (?func@@YAXXZ)>> > I’m following what’s described inhttps://code.kx.com/trac/wiki/Cookbook/InterfacingWithC>> > I’m including k.h and linking with c.lib. ?If I add q.lib, it will> > link, but won’t run. ?I get “The application has failed to start> > because q.exe was not found. ?Re-installing the application may fix> > this problem”.>> > In what lib are sd1() and sd0()?>> > Also, how do I set a filter on the callbacks? ?My app needs to be> > called back with a filter of something as simple as “lastname => > ‘anderson’”.>> > Thanks- Hide quoted text ->> - Show quoted text -</felix.lu…>
X-Mailer: Apple Mail (2.936)clients should use their own multiplexing stuff (select(), poll(), … etc)On 4 Sep 2009, at 16:45, Richard Last wrote:>>>> Ok, so I guess there’s no similar function on the client side, unless> I’m using KDB+Tick?>>>>>> On Sep 3, 11:32 am, Felix Lungu <felix.lu…> wrote:>> sd1 and sd0 are callbacks available only inside kdb when you extend >> it>> with a c module.>>>> On 3 Sep 2009, at 19:10, Richard Last wrote:>>>>>>>>>>>>> I wrote a simple Win32 C app to connect to KDB+ and insert data. >>> That>>> works fine. Now I’m trying to register callbacks with sd1(conn, >>> foo),>>> and I get the following.>>>>> KDBTest error LNK2019: unresolved external symbol _sd1 referenced in>>> function “void __cdecl func(void)” (?func@@YAXXZ)>>>>> I’m following what’s described inhttps://code.kx.com/trac/wiki/ >>> Cookbook/InterfacingWithC>>>>> I’m including k.h and linking with c.lib. If I add q.lib, it will>>> link, but won’t run. I get “The application has failed to start>>> because q.exe was not found. Re-installing the application may fix>>> this problem”.>>>>> In what lib are sd1() and sd0()?>>>>> Also, how do I set a filter on the callbacks? My app needs to be>>> called back with a filter of something as simple as “lastname >>> ‘anderson’”.>>>>> Thanks- Hide quoted text ->>>> - Show quoted text -> ></felix.lu…>