我试图放置const double NA = 1e-300;
在 Cocoa-Touch 的头文件中,但 Xcode 不喜欢它。但是,当我在 Cocoa(64 位 MAC)中执行此操作时,它工作得很好。
??????
错误:
/Users/jdl/Library/Developer/Xcode/DerivedData/iExperiment-chcmotcyeolxeacnidtlgofkcihz/Build/Intermediates/iExperiment.build/Debug-iphonesimulator/iExperiment.build/Objects-normal/i386/ViewController.o 和 /Users/ 中的重复符号 _NA jdl/Library/Developer/Xcode/DerivedData/iExperiment-chcmotcyeolxeacnidtlgofkcihz/Build/Intermediates/iExperiment.build/Debug-iphonesimulator/iExperiment.build/Objects-normal/i386/AppDelegate.o 架构 i386
命令 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang 失败,退出代码为 1
#import <UIKit/UIKit.h>
const double NA = 1e-300; // <------------- Error in Cocoa-Touch but not Cocoa ??
// So where do I put this so it doesn't error out in Cocoa-Touch??
@interface ViewController : UIViewController
{
UITextView *tvText;
}
@end