Sublime Forum

Unable to run c++ file due to error in c++14 build system in sublime text

#1

Whenever I try to build my c++ file I get this error :

The system cannot find the file specified.
[Finished in 1.1s with exit code 1]
[cmd: [‘g++.exe’, ‘-std=c++14’, ‘C:\Users\aksha\Desktop\competitiveProgramming\main.cpp’, ‘-o’, ‘main.exe’, ‘&&’, ‘main.exe<inputf.in>outputf.in’]]
[dir: C:\Users\aksha\Desktop\competitiveProgramming]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\msys64\mingw64\bin;C:\Users\aksha\AppData\Local\Microsoft\WindowsApps;;C:\Users\aksha\AppData\Local\Programs\Microsoft VS Code\bin]

I have tried many build systems but I keep on getting this error, please help me out :frowning:

Other error messages I got while using other build system are as follows :

[WinError 2] The system cannot find the file specified
[cmd: [‘bash’, ‘-c’, “g++ -std=c++14 -Wall ‘C:\Users\aksha\Desktop\competitiveProgramming\main.cpp’ -o ‘C:\Users\aksha\Desktop\competitiveProgramming/main’ && ‘C:\Users\aksha\Desktop\competitiveProgramming/main’”]]
[dir: C:\Users\aksha\Desktop\competitiveProgramming]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\msys64\mingw64\bin;C:\Users\aksha\AppData\Local\Microsoft\WindowsApps;;C:\Users\aksha\AppData\Local\Programs\Microsoft VS Code\bin]
[Finished]

The system cannot find the file specified.
[Finished in 1.4s]

[WinError 2] The system cannot find the file specified
[cmd: [‘mingw32-g++.exe’, ‘-o’, ‘main’, ‘C:\Users\aksha\Desktop\competitiveProgramming\main.cpp’]]
[dir: C:\Users\aksha\Desktop\competitiveProgramming]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\msys64\mingw64\bin;C:\Users\aksha\AppData\Local\Microsoft\WindowsApps;;C:\Users\aksha\AppData\Local\Programs\Microsoft VS Code\bin]
[Finished]

Please help me out

0 Likes

#2

Those builds systems are trying to run g++.exe, bash and mingw32-g.exe respectively, but you only seem to have mingw64 installed.

0 Likes