How to use ZipUtils.h in game?

I used ZipUtils in my game like this:
#include “support/zip_support/ZipUtils.h”
int lenth = ZipUtils::ccInflateMemory(data, dataLength, &uncompressData);

but some error happened:

1>HelloWorldScene.obj : error LNK2019: unresolved external symbol “public: static int cdecl cocos2d::ZipUtils::ccInflateMemory" referenced in function "public: virtual boolthiscall HelloWorld::init(void)” (?init@HelloWorld@@UAE_NXZ)
1>E:2d-1.0.1-x-0.12.0\Debug.win32\gzipTest.win32.exe : fatal error LNK1120: 1 unresolved externals

Because this class is not exported.
You can change

class ZipUtils

to

class CC_DLL ZipUtils

think you, but it still have error.:frowning:
error LNK2019: unresolved external symbol “declspec public: static intcdecl cocos2d::ZipUtils::ccInflateMemoryWithHint(unsigned char ,unsigned int,unsigned char *,unsigned int)” (_imp?ccInflateMemoryWithHint@ZipUtils@cocos2d@SAHPAEIPAPAEIZ) referenced in function “public: virtual bool __thiscall HelloWorld::init(void)” (?init@HelloWorld@@UAE_NXZ)

Minggo Zhang wrote:

Because this class is not exported.
You can change
[…]
to
[…]

it doesn’t work after add CC_DLL.:frowning:
this error just in Win32. it work well in android.