User forums > Help

Acces denied after compiling and running.

(1/1)

OmnificienT:
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.

--- End code ---

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.

OmnificienT:
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.

MortenMacFly:

--- Quote from: OmnificienT on November 16, 2008, 08:45:09 pm ---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.

--- End quote ---
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...

Navigation

[0] Message Index

Go to full version