[英]XCode iOS - Need help on Compiling C Error
I'm trying include this barcode source code Stefanhafeneger - Barcode github.com to my project because this is the only DataMatrix library for iOS I can find so far.我正在尝试将此条码源代码Stefanhafeneger - Barcode github.com 包含到我的项目中,因为这是迄今为止我能找到的唯一一个用于 iOS 的 DataMatrix 库。 I have no problem compile and run the source code on xcode 4.2 but when i try to use the library in my project.
我在 xcode 4.2 上编译和运行源代码没有问题,但是当我尝试在我的项目中使用该库时。 I received quite lots of error as follows.
我收到了很多错误如下。
After some surfing, i found that they were foundation error which i think is cause by the.C files for example file - dmtx.c it is under libdmtx library.经过一些冲浪,我发现它们是基础错误,我认为这是由 .C 文件引起的,例如文件 - dmtx.c 它位于 libdmtx 库下。
When i remove the library for debugging all error were gone and left 'dmtx.h' file not found so i think xcode does regconized these files.当我删除用于调试的库时,所有错误都消失了,并且找不到“dmtx.h”文件,所以我认为 xcode 确实注册了这些文件。 Any idea to compile these C files?
编译这些 C 文件有什么想法吗?
Many Thanks Kin非常感谢健
My assumption is that you did not have the Foundation.framework instanciated in your project...我的假设是您没有在您的项目中实例化 Foundation.framework ...
My mistake, the problem was cause by my prefix file.我的错误,问题是由我的前缀文件引起的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.