If your ERROR in WINDOWS after going gcc --version is this
'gcc' is not recognized as an internal or external command,
operable program or batch file.
then you need to set the environment path: Normally, gcc is installed in
C:\MinGW\bin
Copy this C:\MinGW\bin and go to this Edit the system environment and this to Path and paste there and hit ok

Now open cmd (Run as administrator)
Type gcc --version