Last active
August 29, 2015 14:02
-
-
Save kumaraish/6681f645e92f564b527e to your computer and use it in GitHub Desktop.
C++: Integrate MinGW into Sublime Text 2 on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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}"] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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