<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? 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> </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++. Modern compilers, at very
<br>strict settings, will issue warnings for it. At extremely strict<br>settings, such as the ones I normally use, it will even be an error. So<br>if this code is not meant ever to be compiled as C, you may want to use<br>
reinterpret_cast instead. 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. 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. This can be fixed in two way. Either add the cast to make the code compile under c++ or have the binding tools generate two files. 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 I am just using standard g++ to compile<br><br>Keith<br><br><br>