Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why is GCC running c++ weirdly in vscode?

I followed vscode’s documentation to install the GCC compiler. However, vscode keeps asking me to select a configuration for running my file and according to the documentation I should supposedly select it only once at the beginning, and when I run it there are some things which I think are anomalies.

When running, these 2 terminals are opened (image below)

terminals opened in vscode

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

g++.exe runs in the terminal and says "Build finished Successfully", but the second terminal is what has the weird stuff (image below)

code output

What is this "^C" symbol? And what are the blue paths?

I tried checking the configuration JSON files, but couldn’t find anything helpful.

>Solution :

Pressing Ctrl + C (shown as ^C in the terminal) sends a signal to terminate the currently running process. However, this is just the tip of the iceberg for what this command can do and how it works under the hood. To dive deeper, you can explore more details online about how Ctrl + C interacts with signals and process management in different operating systems.
The blue path is VS Code color-coding of specific types of messages like compiling code

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading