I am using code::blocks Compiler.
If I Run Any Program From Codeblocks Xterm Showing Following -
"sh: 1 : /home/username/Desktop/cp: Permission Denied"
How Can I Run Any Program On Ubuntu?
I Am Using Ubuntu Quantal.
Printable View
I am using code::blocks Compiler.
If I Run Any Program From Codeblocks Xterm Showing Following -
"sh: 1 : /home/username/Desktop/cp: Permission Denied"
How Can I Run Any Program On Ubuntu?
I Am Using Ubuntu Quantal.
create a file with the following
save it as hello.c, then type gcc hello.c. gcc should create a file called a.out. When you type ./a.out, it should run the program.Code:#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}
If any of these steps don't work, you don't have permissions set up normally, and you'll have to log in as super user (sudo) to fix things.
1. Can you run it from the command line?
2. Do you have CB configured correctly for terminal settings?Code:./programname
I have no idea of the correct way.
2b. Whatever terminal program you told Code::Blocks to use;
Is it installed on your system?
Tim S.