Are you compiling the generated code as a c or cpp file. By default the code generator outputs a c file, and I had some nasty issues trying to compile it as such.
I changed the extension to .cpp to compile it in C++, after that the majority of the errors cleared up, and there were just a few casting issues to resolve. This post has a bit more detail about what I did:
http://www.chiefdelphi.com/forums/sh...d.php?t=101222
Hope this helps, I'm still having issues getting this fully working, but getting closer
