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

조회 수: 4 (최근 30일)
John Billingham
John Billingham 2015년 8월 8일
답변: Varun Bhaskar 2015년 8월 10일
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
Walter Roberson
Walter Roberson 2015년 8월 8일
It is not productive for us to guess about possible errors in your real code. We need to see your real code.

댓글을 달려면 로그인하십시오.

답변 (1개)

Varun Bhaskar
Varun Bhaskar 2015년 8월 10일
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:

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by