Sublime Forum

The system cannot find the file specified

#1

Hello I am facing The system cannot find the file specified. this problem for few days. I cannot solve this issue. I am using msys2 c++.

And using this C++ build

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

Please give me an solution

0 Likes

#2

Either you didn’t save the file or g++ cannot be found via PATH.

0 Likes

#3

Everything is fine. There is no issue you talking about. I can show g++ version using cmd. I dont think there are g++ can not find the PATH

0 Likes

#5

Here is reference i follow this from long time. But since few days i cannot work with this

https://www.geeksforgeeks.org/setting-up-sublime-text-for-cpp-competitive-programming-environment/

0 Likes

#6

Your build works fine on my side. :confused:

1 Like

#7

why its happen with me :sob:? But if I used codebooks its run my program without any problem.

0 Likes

#8

If you have antivirus software installed, it may be automatically quarantining the compiled executable as soon as it’s generated, which blocks the OS from being able to run it.

2 Likes

#9

After disabling my anti virus same issue happening

0 Likes

#11

It’s working

0 Likes