【发布时间】:2018-10-26 19:23:34
【问题描述】:
我尝试在我的 Mac 上构建 FLTK 1.3.4-2 版本。我按照说明操作,配置成功。
但是当我安装它时,它显示:
Compiling Fl_cocoa.mm...
In file included from Fl_cocoa.mm:55:
In file included from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:128:
/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:26:49: error: nullability specifier '_Nullable' cannot be applied to
non-pointer type 'uuid_t' (aka 'unsigned char [16]')
- (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes;
^
/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:29:30: error: nullability specifier '_Nonnull' cannot be applied to
non-pointer type 'uuid_t' (aka 'unsigned char [16]')
- (void)getUUIDBytes:(uuid_t _Nonnull)uuid;
^
2 errors generated.
make[1]: *** [Fl_cocoa.o] Error 1
make: *** [install] Error 1
有人知道如何解决这个问题吗?
【问题讨论】:
-
您使用的是什么编译器和版本或 Xcode?span>
-
我使用的是 gcc 4.2.1。 Xcode 已更新,即 8.1。
-
您本可以将其扔到搜索引擎上,并且可能会得到错误解释。无论如何,这是一个值得报告的错误。对于此处的有效问题,您应该首先从 fltk 中提取 minimal reproducible example。