Code::Blocks Forums

User forums => Help => Topic started by: OmnificienT on November 16, 2008, 08:34:27 pm

Title: Acces denied after compiling and running.
Post by: OmnificienT on November 16, 2008, 08:34:27 pm
Hello,

I take the following steps:
-I open up C::B
-I click new, empty file.
-I enter a simple hello world program.
-I click Build and run.
-I see a little terminal saying:
Code
sh: /home/pim/C/helloworld/test: Permission denied

Press ENTER to continue.

What is my mistake here? I'm rather new to linux, so please (if you are able) clearly describe what I need to do.

Thank You,

OmnificienT

Note: I'm using Ubuntu 8.10 with gcc.
Title: Re: Acces denied after compiling and running.
Post by: OmnificienT on November 16, 2008, 08:45:09 pm
Hello again,

It seems the problem was solved by saving the file as "test.c". I'd still like to know why acces was denied earlier though.

Thank you.
Title: Re: Acces denied after compiling and running.
Post by: MortenMacFly on November 17, 2008, 07:26:30 am
It seems the problem was solved by saving the file as "test.c". I'd still like to know why acces was denied earlier though.
You know that "test" is a reserved "system" command under linux/unix? Don't use this as a name! You sure will get into trouble sooner or later if you do so...