【发布时间】:2014-11-23 17:03:35
【问题描述】:
所以我想在我的 mac OS X 10.10 上安装 FLTK。我遵循 README.OSX.txt 文件,但是当我在 make 命令上实际安装它时,我收到以下错误和警告:
Fl_cocoa.mm:4080:5: error: unknown type name 'NSOperatingSystemVersion'
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
^
Fl_cocoa.mm:4080:69: warning: instance method '-operatingSystemVersion' not found (return type defaults to 'id') [-Wobjc-method-access]
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
^~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h:20:12: note:
receiver is instance of class declared here
@interface NSProcessInfo : NSObject {
有没有人知道是什么导致了这个错误或者我可以做些什么来修复它?谢谢!
【问题讨论】:
-
你解决了吗?