Morning,
I'm trying to compile and run some source code in Terminal. It compiles fine using the command
And I've tried to run the compiled file at the following attempts:
Can anyone give me any pointers as to what I'm doing wrong? I thought ./ was the way to execute an object file in a Unix environment.
Thanks,
Cossie
I'm trying to compile and run some source code in Terminal. It compiles fine using the command
Code:
gcc -c -I /home/cossie/ode/include tutorial.cpp -o tutorial
And I've tried to run the compiled file at the following attempts:
Code:
./tutorial
-bash: ./tutorial: Permission denied
Code:
sudo ./tutorial
Password:
sudo: ./tutorial: command not found
Can anyone give me any pointers as to what I'm doing wrong? I thought ./ was the way to execute an object file in a Unix environment.
Thanks,
Cossie