#include "xxtea/xxtea.h" 报错

我在做图片资源解密时,在 #include “CCFileUtils.cpp” 添加 #include “xxtea/xxtea.h” 引用。

在编译的时候报错:
错误 LNK2019 无法解析的外部符号 “unsigned char * __cdecl xxtea_decrypt(unsigned char *,unsigned int,unsigned char *,unsigned int,unsigned int *)” (?xxtea_decrypt@@YAPAEPAEI0IPAI@Z),该符号在函数 “public: class cocos2d::Data __thiscall cocos2d::FileUtils::getDataHelper(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,bool)” (?getDataHelper@FileUtils@cocos2d@@QAE?AVData@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) 中被引用 libcocos2d E:\MyTest\CoCoSProject\NewProject\frameworks\cocos2d-x\cocos\2d\CCFileUtils.obj 1

这个是什么原因?

环境:
cocos2d-x-3.10
vs2015

你有把external/xxtea/xxtea.cpp加入到工程编译吗?