Objective-C 2.0 无法在 GNUstep 中运行

发布于 2024-09-15 12:46:44 字数 372 浏览 2 评论 0原文

[GNUStep installers]
gnustep-system-0.24.2-setup.exe
gnustep-core-0.25.0-setup.exe
gnustep-devel-1.1.1-setup.exe
gnustep-cairo-0.22.1-setup.exe

我将它们安装到 Windows 7 上。 但是,它无法使用 Objective-C 2.0 语法。 例如,@property@synthesizeassign 等。

而且,我想使用 CFSocket,但不支持 CoreFoundation

[GNUStep installers]
gnustep-system-0.24.2-setup.exe
gnustep-core-0.25.0-setup.exe
gnustep-devel-1.1.1-setup.exe
gnustep-cairo-0.22.1-setup.exe

I installed them to windows 7.
But, it is not able to use Objective-C 2.0 syntax.
Example, @property, @synthesize, assign, and so on.

And, I want to use CFSocket, but CoreFoundation was not supported.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

傾城如夢未必闌珊 2024-09-22 12:46:44

根据 http://en.wikipedia.org/wiki/Objective-C 版本2.0仅适用于Apple对gnu编译器的修改。

CoreFoundation 也是一个 Apple 框架/库,所以你在那里不会有太多乐趣。

According to http://en.wikipedia.org/wiki/Objective-C version 2.0 is only available in the Apple modification to the gnu compiler.

CoreFoundation is also an Apple framework/library, so you won't have much joy there.

早茶月光 2024-09-22 12:46:44

不幸的是,当前 Windows 版本的 GNUstep 中不提供 Objective-C 2 功能。 (它们处于 Clang、GNUstep 和 GNUstep 运行时的开发版本中,但此组合尚未发布)。

这里有更多详细信息: http://wiki.gnustep.org/index.php/ObjC2_FAQ< /a>

正如您所指出的,CF 功能不存在。 NSStream 可用于套接字通信(+getStreamsToHost:port:inputStream:outputStream:),但我不确定它是否适合您想要做的事情。

Unfortunately, Objective-C 2 features aren't available in the current Windows release of GNUstep. (They are in development versions of Clang, GNUstep, and the GNUstep runtime, but this combination is not yet released).

There are more details here: http://wiki.gnustep.org/index.php/ObjC2_FAQ

As you noted, CF functions are not present. NSStream can be used for socket communication (+getStreamsToHost:port:inputStream:outputStream:), but I'm not sure if it would work for what you want to do.

烙印 2024-09-22 12:46:44

不幸的是,Core Foundation 不是 GNUstep 的一部分。然而,Apple 确实有一个名为 CFLite 的精简版开源发行版它看起来包含 CFSocket

Core Foundation is not part of GNUstep unfortunately. However, Apple does have a cut down Open Source distribution called CFLite which looks to contain CFSocket.

猫七 2024-09-22 12:46:44

也许这篇类似的 Stackoverflow 帖子会有所帮助。它讨论了在 Ubuntu 上使用 libobjc2 设置 GNUstep,但也可能在 Windows 上工作。

它还提到了 libobjc2 常见问题解答,您可能会在其中获得问题的一些答案。

Maybe this similar Stackoverflow post helps. It talks about setting up GNUstep with libobjc2 on Ubuntu but might also work on Windows.

It also mentions the libobjc2 FAQ where you might get some answers to your question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文