cocos2dx 3.x 模态对话框实现中易出现问题解决方法

来源:互联网 发布:js图片旋转,收缩 编辑:程序博客网 时间:2024/06/05 19:27

相关链接:http://blog.csdn.net/shun_fzll/article/details/27564663

直接使用上述链接的代码时报错,如下:

4>PopupLayer.obj : error LNK2019: 无法解析的外部符号

"public: static classcocos2d::extension::Scale9Sprite * __cdeclcocos2d::extension::Scale9Sprite::create(class std::basic_string<char,structstd::char_traits<char>,class std::allocator<char> > const&)" (?create@Scale9Sprite@extension@cocos2d@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数"public: static class PopupLayer * __cdecl PopupLayer::create(char const*,class cocos2d::Size)" (?create@PopupLayer@@SAPAV1@PBDVSize@cocos2d@@@Z) 中被引用

4>D:\DevProject\cocos2dx_workspace\NewWindow\proj.win32\Debug.win32\NewWindow.exe: fatal error LNK1120: 1 个无法解析的外部命令

无法解析外部符号的错误,产生的原因大体上有两个:

1.没有将具体的代码实现包含到项目中;

2.没有包含相应的lib文件。

   我经常遇到此类问题,因为平时不注意归纳总结,每次解决这类问题都会花大量的时间,今天特此总结。


0 0
原创粉丝点击