ERROR: cannot open output file bin\Debug\filename.exe Permission Denied
Well this could be because you are trying to build your executable in a folder where you have no access to. Where
exactly (full path) do you intent to create this file according to your project setup?