Good afternoon!
Can anyone share their experience on how to connect a MinGW compiler to Sublime?
I found the configuration on the Internet, but when I run compiled programs that drop errors with missing files from "../MinGW/bin/".
Config:
{ "cmd": ["mingw32-g++.exe", "-o", "$file_base_name", "$file_name"], "path": "c:\\Program Files\\MinGW\\bin\\" }
Thanks!
UPD
I found the answer to my question! I had to add one parameter to cmd
. This is the "-static"
.
So this is my MinGW.sublime-build
, which works fine:
{ "path": "c:\\Program Files\\MinGW\\bin\\", "cmd": ["mingw32-g++.exe", "-static", "-o", "$file_base_name", "$file"] }
source share