bash: ./main.o: Permission denied
gcc, opencl
Solution
The executable is built to the `host` file, not the `main.o`.
`main.o` contains compiled contents of `main.c`, not linked into an executable yet.
Problem
I built the opencl program using the commands: ``` gcc -c -I ~/AMDAPP/include main.c -o main.o gcc main.o -o host -L ~/AMDAPP/lib/x86_64/ -l OpenCL ``` It was succesful. When I tried to run it using `./main.o` i got the error message: `bash: ./main.o: Permission denied` Can someone please tell me whats wrong?