I want to be able to save my files in E:\Documents\C++
and then be able to run and compile them. My MinGW location is E:\MinGW\bin
. Everything is saved on a USB flash drive. I am using SublimeText to run and compile these files. Everything works fine if i save the C++ files in the E:\MinGW\bin
folder. I just want to be able to change where to save the files and build and run them. Also I am using this as my sublime-build file
{
"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"]
}
]
}