Subject | Re: [ib-support] c++ api |
---|---|
Author | Paul Schmidt |
Post date | 2001-10-16T21:25Z |
Yves:
On 16 Oct 2001, at 18:28, Yves Glodt wrote:
>
> Hello,
>
> I was looking for an (OS) c++ api for IB6 on Linux, and I only found
> ibpp (http://ibpp.sourceforge.net/).
>
> I played a little around with it and it looks smooth, fast and
> lightweight (at first sight).
> However, the latest version (0.9.2) does not compile here (I haven't
> looked into it), but 0.9.1 does. Is there any other ib c++ api?
>
I couldn't get the 0.9.2 stuff to compile either, however if you follow
the CVS tree, there are a couple of newer files, ibpp.cpp and
_internals.h (there may be one or two more), and the MSVC project
files (ibpp.dsw, ibpp.dsp) are also missing from 0.9.2 once you get
the newer files, it should almost compile clean, except for a couple
of float errors in _xsqlda.c. Simply change those lines to cast the
whole calculation
so the line
_Floats[varnum-1] = *(__int64*)var->sqldata / divisor;
becomes
_Floats[varnum-1] = (float)(*(__int64*)var->sqldata / divisor);
It should then compile completely clean.
Paul
Paul Schmidt
Tricat Technologies
paul@...
www.tricattechnologies.com