(I'm not quite sure if this is the place to ask this, if need be please move to another Stack Exchange community - if possible)
I am learning C++ on my Raspberry Pi (With Raspian (Debian), btw), and I have created a simple Hello World program with the Geany IDE. I compile, build the program, and then run it. However, I get an error:
./geany_run_script.sh: 5: ./geany_run_script.sh: ./HelloWorld: Permission denied
------------------
(program exited with code: 126)
Press return to continue
The compile command is g++ -c "%f"
and the build command being g++ -o "%e" "%f"
.
If you find it helpful the file type is .cxx
.
I would like to use Geany to run due to convenience. Unfortunately I can't run it with the Terminal as super user, even after using chmod +x
.