【发布时间】:2012-06-13 00:04:43
【问题描述】:
在类的头部,接口声明之外,我声明了全局常量:
NSString * const gotFilePathNotification = @"gotFilePath";
NSString * const gotResultNotification = @"gotResultOfType";
gotResultNotification 仅在此类中使用(目前),但我在另一个类实现中引用了 gotFilePathNotificaion。为此,我导入了此标头。
当我尝试编译时,我在此标头中收到有关 gotFilePathNotification 的重复符号链接器错误。为什么会这样?
【问题讨论】:
标签: objective-c linker compiler-errors constants