Standard C++ libraries can not be found. Probably, the extension of your project files is .m
instead of .mm
, which is necessary for c++ compilation.
Linking to a .a c++ Library in an Objective-C Project
-
26-06-2022 - |
문제
I'm trying to add support for iZotope (audio effects) in an Objective-C application.
During integration, I've ran into a number of problems related to linking the iZotope C++ library into my Xcode project.
As of this point I haven't done nothing else than:
- Add the libraries (.a) in TARGETS > MyTargetName > Build Phases > Link Binaries with Libraries
- Add the header files of the library to PROJECT > MyProjectName > Build Settings > Search Paths > Header Search Paths
I haven't written any code, at all. My goal for now is to get my project to compile, as it was before adding the libraries.
Here is a link to the compiler output (https://gist.github.com/dornad/6310107). To me it seems that Xcode has no idea about the c++ std library, so it fails spectacularly.
Any ideas?
해결책
제휴하지 않습니다 StackOverflow