如何添加。一个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.