Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Windows Users Guide

Aditya Narayan edited this page Jun 9, 2019 · 4 revisions

Instructions for Windows Users

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.

Setting System PATH

Windows 10 and Windows 8

  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.
  3. 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.
  4. 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.

Windows 7

  1. From the desktop, right click the Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced system settings link.
  4. 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.
  5. 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.

Windows Vista

  1. From the desktop, right click the My Computer icon.
  2. Choose Properties from the context menu.
  3. Click the Advanced tab (Advanced system settings link in Vista).
  4. 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.
  5. 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.

Windows XP

  1. Select Start, select Control Panel. double click System, and select the Advanced tab.
  2. 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.
  3. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all
Clone this wiki locally