News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Acces denied after compiling and running.

Started by OmnificienT, November 16, 2008, 08:34:27 PM

Previous topic - Next topic

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:

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.

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.
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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]