I am using Windows XP. I am trying to add a new library to Dev-C++. For that, I need to install MinGW and then I have been instructed to add the bin
directory of MinGW to my system path. But, I don’t know how to do it. Please guide me (step by step) to add this to my system path.
Asked
Active
Viewed 1.5e+01k times
23

Peter Mortensen
- 30,738
- 21
- 105
- 131

niro
- 947
- 3
- 13
- 30
1 Answers
36
To change the path on Windows XP, follow these instructions, and then add the directory where you install MinGW plus bin
. Example: if you install MinGW in C:\ then you have to add C:\mingw\bin
to your path
Just for completeness here are the steps shown on the link:
- From the desktop, right-click My Computer and click Properties.
- In the System Properties window, click on the Advanced tab.
- In the Advanced section, click the Environment Variables button.
Finally, in the Environment Variables window, highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
C:\Program Files;C:\Winnt;C:\Winnt\System32;c:\mingw\bin

Peter Mortensen
- 30,738
- 21
- 105
- 131

Dave
- 532
- 5
- 8
-
16alternatively, you can directly call `set PATH=C:\mingw\bin;%PATH%` from the cmd shell, or place the command in a batch script that sets up your environment (that's how Visual Studio does it for its CMD prompt). – rubenvb Apr 20 '11 at 16:27
-
You can also search "path" in the search bar and environmental variables should show up. – Sirswagger21 Jul 27 '21 at 19:43