How can I use zlib in a C mex file and use gz compression?

4 Ansichten (letzte 30 Tage)
John Billingham
John Billingham am 8 Aug. 2015
Beantwortet: Varun Bhaskar am 10 Aug. 2015
I need to use zlib to do gz compression within a C mex file. Something like
#include < zlib.h >
gzFile fi = gzopen(filename, "wb");
gzwrite(fi, text, length of text);
gzclose(fi)
I downloaded a compiled version of zlib from
but mex code.c zdll.lib doesn't work, and I don't know what else to try.
  1 Kommentar
Walter Roberson
Walter Roberson am 8 Aug. 2015
It is not productive for us to guess about possible errors in your real code. We need to see your real code.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Varun Bhaskar
Varun Bhaskar am 10 Aug. 2015
Hello,
It would be easier to recommend further steps if you could describe your workflow in a more detailed manner.
Refer to the following link to view the steps to create a C source Mex file:

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by