Author Topic: Problems abt code block on mac  (Read 16176 times)

ChesterMac

  • Guest
Problems abt code block on mac
« on: October 04, 2011, 12:21:24 am »
Every time when i finishing coding i can't build the file. The build log says nothing to be done and when i try to run it, it shows

Last login: Mon Oct  3 18:19:32 on ttys009
Kes-MacBook-Air:~ kewang$ /Users/kewang/Documents/Untitled1
-bash: /Users/kewang/Documents/Untitled1: Permission denied
Kes-MacBook-Air:~ kewang$

Does anyone know wit all the mean?

thank you

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Problems abt code block on mac
« Reply #1 on: October 04, 2011, 01:13:03 am »
The Permission denied could mean anything from the target being read-only, missing read/write access (user privileges), folder/file does not exist, or a miss-parsed error.  None of these are very likely.

My guess is that your file was not saved with a proper file extension (ex: *.c or *.cpp).  However,
Every time when i finishing coding i can't build the file. The build log says nothing to be done...
often means that you do not have a compiler set up (note that Code::Blocks is an IDE, not a compiler).
See installing a compiler and troubleshooting.

By the way, when posting log output, could you please use code tags?

Note: I have no experience on a Mac, so there could be something obvious I have misunderstood/not noticed.