导入CoreAudioUtility库编译时报一堆莫名其妙的错
Ta的回复 :问题解决了,说一下我的问题,也许有助于其他人: 我们这个老项目的pch文件,是这样写的: #ifndef __PROJECTNAME_PCH__ #define __PROJECTNAME_PCH__ #import <UIKit/UIKit.h> ... #endif 改成: #ifdef __OBJC__ #import <UIKit/UIKit.h> ... #endif 就可以通过编译了 可以用stackoverflow上的这句话来解释原因: Everything which involves ObjC code must be wrapped inside the above #ifdef _ OBJC _, otherwise you will get errors from C sources (in case you have such sources) that you will never understand