Last active
August 17, 2024 21:44
-
-
Save sagebind/9039773048a3900fa49a to your computer and use it in GitHub Desktop.
Sublime Text 3 C++ build system for mingw-w64
This file contains hidden or 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
{ | |
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.cpp, source.c++", | |
"path": "c:/Program Files/mingw-w64/mingw64/bin", | |
"shell": true, | |
"variants": [ | |
{ | |
"name": "Run", | |
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp", "&", "${file_path}/${file_base_name}.exe"] | |
} | |
] | |
} |
Would be possible to in any way add a PATH command so ST could compile using Ming installed in a USB Flash Drive?
It returns:
C:...\ld.exe: cannot open output file
C:\Users...\s.exe: Permission denied
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why use
-static-libgcc
and-static-libstdc++
options?Also, I think
*.cpp
should be${file}
. Am I right?