我刚刚升级到 Mac OSX 10.7 Lion。首先,我讨厌新空间,我不喜欢无法访问比我的用户目录更深的任何目录,但让我们来看看这个问题。
我开发音频单元插件。我有一些代码在 XCode 4.0 中编译和运行完美(它们甚至已发布出售)。
但是在升级到 Lion 和 XCode 4.1 之后,Process 方法所在的主音频单元 .cpp 文件(我的名为 TestAU.cpp)中现在出现了两个主要的编译失败。下面是失败的代码。
#include "TestAU.h"
COMPONENT_ENTRY(TestAU) // FAIL c++ requires a type specifier for all declarations.
TestAU::TestAU(AudioUnit component) : AUEffectBase(component) // FAIL Expected ';' after top level declarator.
{
CreateElements();
Globals()->UseIndexedParameters(kNumberOfParameters);
SetParameter(kParam_One, kDefaultValue_ParamOne );
#if AU_DEBUG_DISPATCHER
mDebugDispatcher = new AUDebugDispatcher (this);
#endif
}
我在解决这个故障时遇到了麻烦。任何帮助都会很棒。谢谢。