file permission for user created c files

Asked by novice

I have installed Anjuta IDE and required packages for C/C++. Whenever i enter a midi.c program and build it, it compiles correctly by creating midi.o file in /home/nitin. However, when i try to run it,
[1] "Program '/home/nitin/Desktop/*'" is not a local file" appears in Anjuta IDE.
[2] When i try at command line following appears:
nitin@nitin-desktop:~$ gcc midi.c
nitin@nitin-desktop:~$ ./midi.o
bash: ./midi.o: Permission denied
nitin@nitin-desktop:~$

Please help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu anjuta Edit question
Assignee:
No assignee Edit question
Solved by:
Karunesh Johri
Solved:
Last query:
Last reply:
Revision history for this message
Best Karunesh Johri (kj-softprayog) said :
#1

Try compilation by the command
gcc midi.c -o midi

For running the program

./midi

Hope it works.

Revision history for this message
novice (nnnn-2006) said :
#2

Thanks, another simple C program was able to run.