Page 1 of 1

Community version. Compilation error in opennurbs_zlib

Posted: Wed Mar 15, 2017 5:22 pm
by Sharko

When I compile the community version I get an error in opennurbs_zlib
I use Qtcreator on windows

"C:/perso/prog/qcad-master/src/3rdparty/opennurbs/opennurbs_zlib.cpp:296: undefined reference to `z_deflate'"

My understanding is that zlib functions should be protected with a z_ during compilation when we statically link
as say in opennurs_zlib.h
// If you are using opennurbs as a statically linked library, then
// you may make calls to the same zlib that opennurbs uses. This
// zlib is compiled with z_ symbol projectection. All the necessary
// header files are included by opennurbs.h.

But I don't find how and where this protection work.
as when I open zlib.h I find teh inflate function and not the z_inflate function