jiafu
jiafu

Reputation: 6546

Is libstdc++ coming from system or gcc or gcc-c++?

Is libstdc++ coming from system or gcc or gcc-c++?

If it comes from gcc or system, can we build C++ program with gcc only (link to libstdc++)?

In short, my question is that if I can build c++ program without gcc-c++ installed?

Upvotes: 1

Views: 285

Answers (1)

Adam
Adam

Reputation: 17329

  • The standard library comes with the compiler.
  • You can link statically, yes.
  • You can't build a c++ program without a c++ compiler. You can run a c++ program without a c++ compiler, however.

Upvotes: 3

Related Questions