The 3.2 build have error in CCBundleReader.cpp?

D:\cocos2d-x-3.2\build…/cocos/./3d/CCBundleReader.cpp:94:23: error: return type of out-of-line definition of ‘cocos2d::BundleReader::tell’ differs from that in the declaration

ssize_t BundleReader::tell()
^
D:\cocos2d-x-3.2\build…/cocos/./3d/CCBundleReader.h:90:14: note: previous declaration is here
long int tell();
^
1 error generated.
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dx_static/3d/CCBundleReader.o] Error 1
make.exe: *** Waiting for unfinished jobs…
make.exe: Leaving directory `D:/cocos2d-x-3.2/tests/cpp-tests/proj.android’
Build dynamic library for project [ D:\cocos2d-x-3.2\build…\tests/cpp-tests/proj.android ] fails!
i use ndk 10, can some one help me?

This is already talked about in another thread.

The cause is that it’s declared as “long int” in the header and “ssize_t” in the definition. I’m sure it will be patched soon officially, but locally you can just change “ssize_t BundleReader::tell()” to “long int BundleReader::tell()” and it should compile and link fine.

1 Like

oh~ thank you very much!