For beginners, what are system variables/environment variables, why do you need to configure these messy GCCs, etc.

In layman's terms, what is a compiler

The program code you write is a large string of characters and symbols, which you input and edit through the keyboard;

It can be understood as: this software program called a compiler turns a lot of symbolic text you write into a program to run;

The home computer only needs to have the ability to run programs, not the ability to write programs, so a compiler ;

System Variables/Environment Variables

It is often difficult for beginners to understand system variables. Configuring system variables is actually telling your computer:

Me, there is a compiler on this computer. When you execute the .c file, the compiler can jump out by itself

Just like you click to share in the photo album of your mobile phone, there is a share to QQ WeChat;

It’s QQ WeChat that told your mobile phone. I have QQ WeChat on this mobile phone, so he can perform such operations;

How to configure environment variables?

  • Install the compiler you need, such as GCC in C language, and Python is a venv environment;

  • Through the PATH variable, tell your system that I have this compiler in a certain path;

The specific method may wish to talk about it here, you can try to follow the tutorials and books you have read!

Guess you like

Origin blog.csdn.net/Littlelumos/article/details/129566560