Search code examples
c++17game-engine

Permission denied when trying to run game engine on vscode on ubuntu 18.04


cd "/home/gaurav/Desktop/c++ project/" && g++ olcPixelGameEngine.h -o olcPixelGameEngine && "/home/gaurav/Desktop/c++ project/"olcPixelGameEngine bash: /home/gaurav/Desktop/c++ project/olcPixelGameEngine: Permission denied


Solution

  • Do you have permission to execute? Try running the shell command chmod u+x /home/gaurav/Desktop/c++ project/olcPixelGameEngine.h.