平台无关和跨平台有什么区别?
我见过很多C/C++库和Gui工具包。其中有一些像 GTK+ 、 Qt 、 Swing 等声称是平台无关的。而有些,如 WxWidgets、SWT 等,声称是跨平台的。起初我以为这只是措辞上的改变,但这些术语的使用如此一致,我开始怀疑。区别是什么?
I have seen a lot of C/C++ Libraries and Gui Toolkits. Among them there are some like GTK+ , Qt , Swing etc. which claim to be platform-independent. While some , like WxWidgets, SWT etc. which claim to be cross-platform. At first I thought it to be just a change in wording, but the terms have been used with such consistency that I have started to wonder. What is the difference?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(4)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
跨平台仅意味着您支持多个平台。它通常指 Linux、Mac 和 Windows。平台无关意味着您支持您的语言支持的任何平台 - 即,您不依赖于语言规范中未指定的行为。然而,这只是我个人的观点,大多数用法只是将它们两者都表示“多平台”,通常是“Windows 和......”。
Cross-platform only implies that you support multiple platforms. It usually means Linux, Mac, and Windows. Platform-independent implies that you support any platform that your language supports- i.e., you depend on no behaviour that is not specified in the language specification. However that's just my personal opinion and most uses just take both of them to mean "multiple platforms", usually "Windows and ...".