Amazon.com Widgets Xcode build errors-prog 1
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 24, 2014, 05:41:06 AM
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
|-+ Programming in Objective-C, 4th edition
| |-+ Chapter 2
| | |-+ Xcode build errors-prog 1
Pages: [1] Go Down
Print
Author Topic: Xcode build errors-prog 1 (Read 1277 times)
amre9480
Newbie
*
Posts: 2


Email




on: June 17, 2012, 11:54:05 AM

I'm trying to build and run prog1, however the compiler is giving me errors. I have OSX 10.7.4 and Xcode 4.3.2. It says theres errors in the NSObjCRuntime.h, NSZone.h, and NSObject.h files.

here is my code exactly:

//First program example

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{
    @autoreleasepool {
        NSLog (@"Programming is fun!");
    }
    return 0;
}
Logged
john67
Newbie
*
Posts: 32






Reply #1 on: June 17, 2012, 03:44:36 PM

There's nothing wrong with that program,you have the same version of Xcode and OSX as me

this program, is it in "main.m"?
Logged
amre9480
Newbie
*
Posts: 2


Email




Reply #2 on: June 18, 2012, 11:12:00 AM

Oh, yeah, thats the problem, i created a C project instead of a foundation project. Thanks.
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.