x-ite's diary

覚え書きです。想定読者は俺

Objective-C

"_OBJC_CLASS_$_AVAudioPlayer", referenced from:

"_OBJC_CLASS_$_AVAudioPlayer", referenced from: FrameworksにAVFoundation.frameworkを追加

相互インクルードによるコンパイルエラー

ISO C++ forbids declaration of 'Hoge' with no type expected `;' before '*' token 'Hoge' has not been declared cannot convert 'Hoge*' to 'int*' in argument passing 上記のエラーがでた場合は、相互参照によるクラスのコンパイルエラーの可能性があ…

__NSAutoreleaseNoPool(): Object 0x10010ca70 of class NSCFString autoreleased with no pool in place - just leaking

#import <objc/Object.h> #import <Foundation/Foundation.h> int main(void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [pool drain]; }</foundation/foundation.h></objc/object.h>