简体   繁体   English

iOS:从c ++代码构建静态库失败

[英]iOS: building a static library from c++ code fails

I have been trying to create an static library out of C++ code by following this tutorial . 按照本教程,我一直在尝试用C ++代码创建一个静态库。 If I trying to build the project some error occurs. 如果我尝试构建项目,则会发生一些错误。

#include <limits>  "limits" file not found

for example. 例如。

I have been trying different build settings, eg C++ Standard Library with no luck. 我一直在尝试不同的构建设置,例如C ++标准库,没有运气。 Rename the implementation files from .cpp to .mm did not work also. 将实现文件从.cpp重命名为.mm也不起作用。 Is there an workaround to solve this issues? 是否有解决此问题的解决方法?

尝试使用#include <limits.h>而不是#include <limits>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM