Termux permission denied

GFTA picture GFTA · Oct 30, 2018 · Viewed 11.1k times · Source

I want to execute a simple code in Termux(c++) but every time I get an error:

bash: ./test.cpp: Permission denied
Storage permission is on and gcc is installed. 

Do I need root or something else?

Answer

Thana picture Thana · Oct 30, 2018

As molbdnilo said, you should compile your source file first :

g++ test.cpp

And then execute the binary produced (the default name is a.out)

./a.out