Skip to content

Instantly share code, notes, and snippets.

@kumaraish
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumaraish/6681f645e92f564b527e to your computer and use it in GitHub Desktop.
Save kumaraish/6681f645e92f564b527e to your computer and use it in GitHub Desktop.
C++: Integrate MinGW into Sublime Text 2 on Windows
{
"cmd": ["g++", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["${file_path}/${file_base_name}"]
}
]
}
Do not forget to add MinGW/bin folder to your Windows PATH variable
Alternatively, you can add the path by doing this -
{
"cmd": ["g++", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"],
"path": "c:\\Program Files\\MinGW\\bin\\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment