autoreleasepool was not declared in this scope error
问题 My project is in XCode 4.2. This project compiles for a regular debug build. But when I change the build type to profile (I want to profile memory usage), I get the error from this objective-c++ c++ class: /Volumes/mchinen/scm/Voicer/FilterAudioMixer.mm:53: error: stray '@' in program /Volumes/mchinen/scm/Voicer/FilterAudioMixer.mm: In member function 'void FilterAudioMixer::WriteToBuffer(SInt16*, int)': /Volumes/mchinen/scm/Voicer/FilterAudioMixer.mm:53: error: 'autoreleasepool' was not