简体   繁体   English

OS X上的libstdc ++ gcc

[英]libstdc++ gcc on OS X

Is it possible to use the libstdc++ from gcc on OS X? 是否可以在OS X上使用gcclibstdc++ Do I have to download the full version of gcc or the LLVM is good? 我必须下载完整版本的gcc还是LLVM很好? What are the headers to #include ? #include的标头是什么?

Judging from your previous question and comments you are interested in the Decimal extensions included in libstdc++, not just libstdc++ itself. 上一个问题和评论来看, 对libstdc ++中包含的Decimal扩展感兴趣,而不仅仅是libstdc ++本身。

You can easily use libstdc++ and/or GCC on OS X, they should be included with Xcode, but only a very old version, GCC 4.2, which doesn't include the Decimal extensions that you're interested in. 您可以轻松地在OS X上使用libstdc ++和/或GCC,它们应该包含在Xcode中,但只有一个非常旧的版本GCC 4.2,其中不包含您感兴趣的Decimal扩展。

To use those extensions you'll need to install GCC 4.5 or later and use that instead of the default clang or gcc-4.2 compilers. 要使用这些扩展,您需要安装GCC 4.5或更高版本,并使用它代替默认的clang或gcc-4.2编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM