Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 91048

\frameworks\cocos2d-x\external\unzip\ioapi.cpp:115:16: error: use of undeclared identifier 'fopen64'; did you mean 'fopen'?怎么修改啊

$
0
0

@shangQu 写道:

\frameworks\cocos2d-x\external\unzip\ioapi.cpp:115:16: error: use of undeclared identifier 'fopen64'; did you mean 'fopen'?
file = fopen64((const char*)filename, mode_fopen);
^~~~~~~
fopen
D:/SDK/ndk-bundle/sysroot/usr/include\stdio.h:232:7: note: 'fopen' declared here
FILE* fopen(const char* __path, const char* __mode);
^
\frameworks\cocos2d-x\external\unzip\ioapi.cpp:147:11: error: use of undeclared identifier 'ftello64'
ret = ftello64((FILE *)stream);
^
\frameworks\cocos2d-x\external\unzip\ioapi.cpp:190:8: error: use of undeclared identifier 'fseeko64'; did you mean 'lseek64'?
if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
^~~~~~~~
lseek64
D:/SDK/ndk-bundle/sysroot/usr/include\unistd.h:234:9: note: 'lseek64' declared here
off64_t lseek64(int _fd, off64t __offset, int __whence);
^
\frameworks\cocos2d-x\external\unzip\ioapi.cpp:190:17: error: cannot initialize a parameter of type 'int' with an rvalue of type 'FILE *' (aka '__sFILE *')
if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
^~~~~~~~~~~~~~
D:/SDK/ndk-bundle/sysroot/usr/include\unistd.h:234:21: note: passing argument to parameter '__fd' here
off64_t lseek64(int _fd, off64t __offset, int __whence);

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 91048


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>