Compiler MinGW latest version (Auto-download)
More Information at:
Note: Always check for the latest update!
- Extract
.zip, create afolder, and copythe folder path. - Example:
C:\<folder_name>- (
<folder_name>- it means the custom folder with name you've created or choose the existing folder).
- (
- Search Bar
- Search "Edit the system environment variables" → click "open".
- Control Panel
- Search "System" on Control Panel and find → click "Edit the system environment variables".
- Add the PATH environment variable.
- Go to "Advanced" and find → click "Environment Variables".
- Look the "System Variables" and find → click "Path".
- 3 Options exist: [New] [→ Edit] [Delete]
- Click "New" and paste the folder path where the extracted files from the ZIP are located.
- Example:
C:\<folder_name>\<extracted_folder_name> - Done? All [→ OK]
- Ctrl + Shift + P
- Search and find "C/C++: Edit Configurations (UI)".
- Enter and 2 Options exist:
select a detected compiler pathfrom the drop-down list.fill the compiler pathwith specify path.
gcc --version
- Example:
<file_name>.c(#C)<file_name>.cpp(C++)
gcc <file_name>.c -o <file_name>
./<file_name>
g++ <file_name>.cpp -o <file_name>
./<file_name>
gcc← Compiler for #Cg++← Compiler for C++<file_name>.c← #C File Extension<file_name>.cpp← C++ File Extension-o <file_name>.exe← Compiled Executable File-o← Output (tells the compiler what name to give the output file)without -o← create a default name filea.exe← (Windows)a.out← (MacOS/Linux)