Author Topic: Acces denied after compiling and running.  (Read 3316 times)

Offline OmnificienT

  • Single posting newcomer
  • *
  • Posts: 5
Acces denied after compiling and running.
« 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.

Offline OmnificienT

  • Single posting newcomer
  • *
  • Posts: 5
Re: Acces denied after compiling and running.
« Reply #1 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Acces denied after compiling and running.
« Reply #2 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ