Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
May 23, 2018, 01:33:53 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: gcc framework option not working  (Read 2048 times)
Posts: 1

« 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.
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.


« Last Edit: August 02, 2011, 10:13:37 AM by skochan » Logged
Pages: [1]   Go Up
Jump to:  

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 ゥ 2009 All rights reserved.