Amazon.com Widgets compiling in terminal is not working
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2014, 11:32:19 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Errata, Answers to Exercises, Code, etc.
| | |-+ compiling in terminal is not working
Pages: [1] Go Down
Print
Author Topic: compiling in terminal is not working (Read 6166 times)
oliver36
Newbie
*
Posts: 4


Email




on: May 03, 2011, 11:56:57 AM

hi i am new in this forum and i have a question, i have bought this book to learn programming in objective-c 2.0 but when i want to compile and run the prog1.m in terminal comes a message permisson denied ,can anybody help me please ?
and sorry for my bad english.
Logged
oliver36
Newbie
*
Posts: 4


Email




Reply #1 on: May 03, 2011, 12:45:17 PM

the message is        cc1obj: error: /usr/local/include: Permission denied       but why ?
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #2 on: May 03, 2011, 02:21:14 PM

Can you show me the line you typed before receiving the message?

Steve
Logged
oliver36
Newbie
*
Posts: 4


Email




Reply #3 on: May 03, 2011, 09:46:16 PM

ok first i have typed in the command mkdir Progs to create the directory than i have typed in cd Progs and then i have typed in vi prog1.m after i have typed in the program i have saved the text as prog1.m wih the command  :w prog1.m
Than i wanted to type in the command gcc -framework Foundation prog1.m -o prog1 but then i get the message       cc1obj: error: /usr/local/include: Permission denied
Logged
oliver36
Newbie
*
Posts: 4


Email




Reply #4 on: May 06, 2011, 12:02:29 PM

i have find the problem i have done it with root.
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.