Skip to content

@trietptm /C++.sublime-build
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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"]
}
]
}
@idlephilosopher

Thanks so much! This saved me a ton of time trying to figure out the details. :)

@walbarello

Hohoho, thanks so much, man! This saved me too! :D

@gsantiago

The scanf does not works.

@jpcofr

For the record, couldn't build at windows because I was opening sublime without administration privileges.

@jainrocks

Hey what is file, file_path and file_base_name?

@jitsguy

Hi, Im new to this stuff, where do I paste that code in order for me to compile using cmd?

@lsandrade

Thank you :)

@aanelzam93

oke thank so much

@dprophecyguy

How to use that code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.