w1n5rx
2/10/2016 - 10:23 AM

Working C++.sublime-build on Windows

Working C++.sublime-build on Windows

{
	"cmd": ["g++", "${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}.exe"]
		}
	]
}