Community version. 3.16.5.5. Compilation error in opennurbs_zlib

Use this forum for all posts and questions about the free QCAD Community Edition version 3

Moderator: andrew

Post Reply
Sharko
Newbie Member
Posts: 3
Joined: Tue Mar 14, 2017 9:39 pm

Community version. 3.16.5.5. Compilation error in opennurbs_zlib

Post by Sharko » Wed Mar 15, 2017 5:22 pm

Hello

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

Post Reply

Return to “QCAD Community Edition”