Sublime Forum

Not Able to run my bulid

#1

I have just installed sublime editor for first time and making an setup for C++ .i have made an bulid but when i run my cpp file my bulid is not visible

    {
    "cmd": ["g++.exe", "-std=c++17", "${file}",
            "-o", "${file_base_name}.exe",
            "&&", "${file_base_name}.exe<input.txt>outputxt.out"],
    "shell":true,
    "working_dir":"$file_path",
    "selector":"source.cpp"
}
0 Likes

#2

That build system is correctly formed. Have you saved the C++ file you’re writing with a correct file extension? Is the syntax highlighting on the file set to C++ (Bottom right corner)?

1 Like

#3


yep syntax is set to C++;
mine major issue under the user>packages
mine bulid is not having extension sublime-bulidsystem is saved under just file,any help will be much appreciated

0 Likes

#4

Yes the file needs to have a .sublime-build extension. You can find out how to do that on your operating system using an internet search engine.

0 Likes