-
Notifications
You must be signed in to change notification settings - Fork 21
Windows Users Guide
To use linter-gcc on Windows, you must first install Cygwin from here. During the installation, make sure you install the gcc
and g++
packages. Other packages you might find useful are gdb
and make
. You will find these packages in the 'Devel' category. You may also install MinGW from here.
The next step is to add your GCC bin directory to your system PATH. An easy way to find this directory is to enter the command which gcc
in Cygwin.
Then you need to add this to your system PATH. As an example, if your PATH is C:\Windows
and your GCC bin directory is C:\MinGW\bin
, your new PATH should be C:\Windows;C:\MinGW\bin
. Note the use of the semicolon as a separator. Please refer to the instructions below on how to change the system PATH on your version of Windows.
Finally, set the linter-gcc executable path to g++.exe
or gcc.exe
. Note that you MUST NOT set it to C:\MinGW\bin\g++.exe
or C:\MinGW\bin\gcc.exe
. You must NOT specify the full path, only the name of the executable.
Try closing any GitHub application (Atom, GitHub Shell, GitHub Desktop) and reopening again if the problem persists.
- In Search, search for and then select: System (Control Panel)
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
- From the desktop, right click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
- From the desktop, right click the My Computer icon.
- Choose Properties from the context menu.
- Click the Advanced tab (Advanced system settings link in Vista).
- Click Environment Variables. In the section System Variables, ind the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
- Select Start, select Control Panel. double click System, and select the Advanced tab.
- Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.