Use of external C++ headers in Objective-C

前端 未结 5 1990
花落未央
花落未央 2020-12-13 19:40

In my iOS project I need to use an external library written in C++. The C++ header files are all in one directory.

I\'ve added these C++ headers to my Xcode project

5条回答
  •  一向
    一向 (楼主)
    2020-12-13 20:29

    #include 
    

    is meant for standard library or framework headers, and the search strategy Is different than that used for

    #include "bla.h"
    

    See for example

    • What is the difference between #include and #include "filename"?

    As a workaround, you can set the Xcode build setting "Always Search User Paths" to YES.

提交回复
热议问题