To add the GCC MinGW bin directory to your system path on Windows 10, you can follow these steps:
-
Open File Explorer and navigate to the MinGW installation directory. The default location for MinGW is C:\MinGW.
-
Inside the MinGW directory, locate the bin folder. This folder contains the executables for GCC.
-
Click on the address bar of the File Explorer window and copy the path to the bin folder. Alternatively, you can right-click on the bin folder and select Properties. In the Properties dialog box, copy the path in the Location field.
-
Open the Start menu and search for "Environment Variables". Select the "Edit the system environment variables" option.
-
In the System Properties dialog box, click on the "Environment Variables" button.
-
Under the "System Variables" section, scroll down and locate the "Path" variable. Click on "Edit".
-
In the Edit environment variable dialog box, click "New" and paste the path to the MinGW bin directory that you copied in step 3. Click "OK" to close all the dialog boxes.
-
Restart any open command prompt or terminal windows for the changes to take effect.
After following these steps, you should be able to run GCC commands from any directory in your command prompt or terminal.
No comments:
Post a Comment