Sublime Forum

Error while compiling c++ cc1plus: fatal error

#1

cc1plus: fatal error: C:\Users\mayuk\Contests\AtCoderDaiwaSecuritiesCo_Ltd.ProgrammingContest2023AtCoderBeginnerContest331\ATomorrow.cpp: No such file or directory
compilation terminated

my build system is—>
{

“cmd”:[“bash”, “-c”, “g++ -std=c++14 -Wall ‘${file}’ -o ‘${file_path}/${file_base_name}’ && ‘${file_path}/${file_base_name}’”],

“file_regex”: “^(…[^:]):([0-9]+):?([0-9]+)?:? (.)$”,

“working_dir”: “${file_path}”,

“selector”: “source.c, source.c++”,

“variants”:

[

{

 "name": "Run",

 "cmd":["bash", "-c", "g++ -std=c++14 '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]

}

]

when i go to ‘C:\Users\mayuk\Contests\AtCoderDaiwaSecuritiesCo_Ltd.ProgrammingContest2023AtCoderBeginnerContest331\ATomorrow.cpp’ this location using cmd it is working my gcc and g++ is up and running please help

0 Likes