<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">1. The patch is reversed, right?&nbsp;&nbsp;I mean, it's meant to add the cast<br>rather than removing it?
</blockquote><div><br>Yes, the patch add the cast in<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2. This style of casting is obsolete in C++.&nbsp;&nbsp;Modern compilers, at very
<br>strict settings, will issue warnings for it.&nbsp;&nbsp;At extremely strict<br>settings, such as the ones I normally use, it will even be an error.&nbsp;&nbsp;So<br>if this code is not meant ever to be compiled as C, you may want to use<br>
reinterpret_cast instead.&nbsp;&nbsp;Of course that in turn won't wash with truly<br>antiquated compilers...<br><br></blockquote></div><br>I didn't know that this style of casting was obsolete.&nbsp; My basic problem is that the file that the binding tools generated can not be included in a c++ file because the code it generates is not c++ compliant.&nbsp;&nbsp; This can be fixed in two way.&nbsp;&nbsp; Either add the cast to make the code compile under c++ or have the binding tools generate two files.&nbsp; A .c file that contains the code and a .h file that just include the prototypes and can be included in a c++ file.
<br><br>fyi&nbsp; I am just using standard g++ to compile<br><br>Keith<br><br><br>