I am making online CPP compiler.It works good on my machine but when i deployed it on heroku i am getting an error from GCC. "gcc: error trying to exec 'cc1plus': execvp: No such file or directory"
i am using node js child process to compile the file
var proc = spawn('gcc', [`program` + ".cpp", "-o", `program`, '-lstdc++']);
where program.cpp is the source file.
I got the error "gcc: error trying to exec 'cc1plus': execvp: No such file or directory"
can you please tell how it can be resolved.