Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
December 16, 2017, 09:08:38 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
  Print  
Author Topic: Snow Leopard / XCode 3.2 Chapter 7  (Read 1154 times)
kielmc
Newbie
*
Posts: 2


Email
« on: March 21, 2010, 12:00:07 PM »

Hi!   Anyone else have problems compiling the fraction example in Chapter 7 via XCode?  It compiles fine using the gcc via terminal, but the exact same code generates the following error in XCode (see attachment):
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #1 on: March 23, 2010, 10:35:36 AM »

Does Xcode know that Fraction.m is part of your project?  If you just drag the files into XCode, they don't get properly integrated into the project.

Cheers,

Steve Kochan
Logged
kielmc
Newbie
*
Posts: 2


Email
« Reply #2 on: March 23, 2010, 07:03:09 PM »

You hit the nail on the head.  Previously, I "dragged" the files in, and assumed the #import statement would take care of the rest.  Instead, right clicking the Sources folder and adding the existing files (Fraction.h and Fraction.m) fixed the error.  Thanks, Stephen.  Awesome book.  : )
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #3 on: March 23, 2010, 07:28:58 PM »

Thanks, Stephen.  Awesome book.  : )

Thanks!   Embarrassed

Cheers,

Steve
Logged
Pages: [1]   Go Up
  Print  
 
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 classroomM.com. All rights reserved.