美文网首页
'stack' file not found 问题分析和解决方法

'stack' file not found 问题分析和解决方法

作者: Sam129 | 来源:发表于2016-10-10 14:37 被阅读0次

在项目中遇到直接崩溃在CCDirector.h 系统文件,报错如下

'stack' file not found


问题分析:

从网上看到资料说可能原因有如下几个:

1. You are trying include C++ header in Objective-C implementation file.

2. You are trying include header twice. That can not clear for you, why compiler not indicate? Because one of this includes header through another header.

大致意思是由于在.m文件中混编添加了含有C++代码的类或者常量却没有把文件改成.mm混编文件造成的。从上面截图可以看到三个文件俩个类,说明在alioss文件中引入的XXConstans.h中出现了不同语言的代码。

解决方法:

1.把alioss.m改成abioss.mm

2.把XXConstants.h中不同语言的代码转化成相同的编程语言

相关文章

网友评论

      本文标题:'stack' file not found 问题分析和解决方法

      本文链接:https://www.haomeiwen.com/subject/litvyttx.html