将c ++文件和文件夹包含在iOS xcode项目中时出错

时间:2023-01-13 20:14:32

In my project I need to use an external files and folders which are written in C++ relates to OpenGL framework.

在我的项目中,我需要使用外部文件和文件夹,这些文件和文件夹是用C ++编写的,与OpenGL框架有关。

I've added these C++ headers to my Xcode project, and also specified a header search path (Build Settings -> Header search paths). Everything works fine in demo project but getting error while adding to original project which has 2 projects with a single workspace.

我已经将这些C ++标题添加到我的Xcode项目中,并且还指定了标题搜索路径(Build Settings - > Header search paths)。在演示项目中一切正常但在添加到具有单个工作区的2个项目的原始项目时会出错。

Error :file not found with <angled> include; use "quotes" instead

Getting this error at the time of compilation. If I tried with include statement with quotes again it is generating some more errors.

编译时出现此错误。如果我再次尝试使用带引号的include语句,则会产生更多错误。

How to use external c++ libraries and headers in iOS objective-c project? Unable to find the issue.It may be a duplicate question but I dint found a solution. Need suggestions to resolve this error.

如何在iOS objective-c项目中使用外部c ++库和头文件?无法找到问题。这可能是一个重复的问题,但我找到了解决方案。需要建议来解决此错误。

1 个解决方案

#1


0  

Resolved issue.It was problem with folder structure and path.Added proper path in Header Search Paths in Build Settings.

已解决的问题。文件夹结构和路径存在问题。在Build Settings中的Header Search Paths中添加了正确的路径。

#1


0  

Resolved issue.It was problem with folder structure and path.Added proper path in Header Search Paths in Build Settings.

已解决的问题。文件夹结构和路径存在问题。在Build Settings中的Header Search Paths中添加了正确的路径。