Pages

Monday, April 15, 2013

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

clang: warning: argument unused during compilation: '-fobjc'ld: warning: directory not found for option '-Foundation'ld: framework not found -Foundationclang: 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


View the original article here

0 comments:

Post a Comment