Skip navigation

first objective c program... getting the following error in command line...

531 Views 8 Replies Latest reply: Apr 12, 2013 11:33 AM by etresoft RSS
AceNeerav Level 1 Level 1 (80 points)
Currently Being Moderated
Apr 11, 2013 10:11 PM
clang: warning: argument unused during compilation: '-fobjc'
ld: warning: directory not found for option '-Foundation'
ld: framework not found -Foundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

Initially i realized that clang was missing. So after a google search I installed "command line tools" from xcode preference. Now I'm getting this error. Can someone tell me what it means?

 

I'm following the example in stephen kochan's programmin guide and using the following command to compile from command line...

 

Neeravs-MacBook-Pro:Stepen Kochan neeravkothari$ clang -fobjc -framework -Foundation main.m -o prog1

 

 

Thanks for your time going through this...

 

Neerav

MacBook Pro, OS X Mountain Lion (10.8.2), 13 inch, 2.4 Ghz, Mid 2010

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.