Use of external C++ headers in Objective-C

前端 未结 5 1999
花落未央
花落未央 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:12

    In Xcode 9, I need to add header files path to the Header Search Paths build setting, not User Header Search Paths.

    Xcode will append User Header Search Paths to compile command as -iquote options, but append Header Search Paths as -I options. That's the key difference.

提交回复
热议问题