0

Recently I ran a code, to change the color of the output in the terminal. After running that c++ program, now if I run any c++ program in Linux I am getting some weird errors. I have attached the error picture.

ERROR PIC

3
  • Hi and welcome to Stack Overflow. Please share the source code that is generating the error along with the command you are using to compile it. Commented Jun 12, 2021 at 11:21
  • 1
    Use g++ instead of gcc. The latter is for C, not C++. Commented Jun 12, 2021 at 11:22
  • The rules require posting text as text, not as screenshots. Suggest doing that next time. Commented Jun 12, 2021 at 11:22

1 Answer 1

3

You appear to be trying to link a C++ program with gcc, which does not automatically link against the C++ standard library. Try using g++ instead.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.