1 Sep 2008 03:31
RE: [eiffel_software] Eiffel/Zlib Wrapping
Hello Hubert!
Have you solved your problem yet? I haven't seen any other posts.
I had a quick look at the code you included in your email.
The
alias
"deflateInit"
in the Eiffel code clearly tells the Eiffel compiler to call deflateInit
with the arguments you've given to your external.
Things start to go wrong in the C code with:
#define deflateInit(strm, level) deflateInit_((strm), (level),
ZLIB_VERSION, sizeof(z_stream))
This macro expects 2 arguments, yet you are providing 4. It seems, from
the signature of your external, that you intended to call deflateInit_
the function, and not deflateInit the macro.
It might be interesting to have a look at the generated C code, and even
more interesting to see the result of it passing through the
preprocessor (-E flag) to see how mismatched macro/arglist even
compiled.
I know it's not a solution, but at least it's a response :)
R
==================================================
(Continue reading)
RSS Feed