如何添加。一个C固定库X code和使用它呢? [英] How to add .a C static library to Xcode and use it there?

查看:150
本文介绍了如何添加。一个C固定库X code和使用它呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ARM7-GCC编译一个静态的C库,我想在我的iOS项目中使用它。我添加它来预测,但我无法弄清楚如何使用它。

I have a static C library compiled with arm7-gcc and i want to use it in my iOS project. i added it to project but i can't figure out how to use it.

推荐答案

添加库项目,并包括在应用程序中$ C $头后cб还有第二步。这一步是让在X code项目知道在哪里头文件/文件是/是。您可以通过编辑用户头搜索路径建设的路径头文件设置做到这一点。

After adding the library to the project and including the header in your application codeб there is a second step. That step is letting the Xcode project know where the header file/files is/are. You do this by editing the "User Header Search Paths" build setting with the path to the header files.

这篇关于如何添加。一个C固定库X code和使用它呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆