Amazon.com Widgets gcc framework option not working
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2014, 04:01:01 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
| |-+  Chapter Study
| | |-+  Chapter 2 - Programming in Objective-C
| | | |-+  gcc framework option not working
Pages: [1]   Go Down
Print
Author Topic: gcc framework option not working  (Read 1149 times)
hyloguy
Newbie
*
Posts: 1


Email




« on: August 01, 2011, 03:33:36 PM »

Hi there! I am working through this book from the beginning using both Xcode and the command line, and I ran into an initial problem on the command line.

As instructed, after saving my source code as main.m, I typed:
gcc –framework Foundation main.m -o prog1


I got the following errors:
i686-apple-darwin11-llvm-gcc-4.2: –framework: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: Foundation: No such file or directory


Clearly gcc is present, and I could see that Foundation.framework is in the /System/Library/Frameworks folder. So what's wrong here?

Thank you.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







« Reply #1 on: August 01, 2011, 06:32:23 PM »

Strange, as anything that starts with a - is taken as an option, not a file (that's a dash and not a minus sign you typed, correct?).  I see you're running Lion.  I'll test tomorrow on my office system and see if I can discover anything.  

UPDATE:  The command line compile runs fine under Lion.  I still suspect the '-' character.

Cheers,

Steve
« Last Edit: August 02, 2011, 10:13:37 AM by skochan » 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.