error adding symbols: DSO missing from command line

Introduction to the
While compiling GCC, I encountered the error of adding symbols: DSO missing from command line. The reason was that I couldn’t find the library stdc++ I wanted to link to
The solution

    USES g++ instead of GCC to add -lstdc++

at the end of the GCC compile command

Read More: