简体   繁体   English

libstdc ++来自system或gcc还是gcc-c ++?

[英]Is libstdc++ coming from system or gcc or gcc-c++?

Is libstdc++ coming from system or gcc or gcc-c++? libstdc ++来自system或gcc还是gcc-c ++?

If it comes from gcc or system, can we build C++ program with gcc only (link to libstdc++)? 如果它来自gcc或系统,我们可以用gcc构建C ++程序(链接到libstdc ++)吗?

In short, my question is that if I can build c++ program without gcc-c++ installed? 总之,我的问题是,如果我可以在没有安装gcc-c ++的情况下构建c ++程序?

  • The standard library comes with the compiler. 标准库随编译器一起提供。
  • You can link statically, yes. 你可以静态链接,是的。
  • You can't build a c++ program without a c++ compiler. 没有c ++编译器就无法构建c ++程序。 You can run a c++ program without a c++ compiler, however. 但是,您可以没有c ++编译器的情况下运行 c ++程序。

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

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