• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode beginner problem (tutorial build)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode beginner problem (tutorial build)


  • Subject: Xcode beginner problem (tutorial build)
  • From: Lee Cullens <email@hidden>
  • Date: Thu, 29 Sep 2005 16:10:38 -0400

Beginner problem:
(dual 2.5 PM G5, Tiger [10.4.2], Xcode 2.1 [full xcode tools 2.1 install 9/28])

I'm just getting back to C after twenty-some years away and refreshing my memory with the <a href="" class="moz-txt-link-rfc2396E" href="http://www.eskimo.com/~scs/cclass/cclass.html">"http://www.eskimo.com/~scs/cclass/cclass.html">tutorial</a>.  Just brushing up before getting into Kochan's ObjC book and Hillegass's Cocoa book.  I'm having no problem doing the C tutorial exercises via Terminal (gcc), but I tried to do the first exercise with Xcode and can't get beyond the build step.

Working from Apple's <a href="" class="moz-txt-link-rfc2396E" href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeQuickTour/index.html#//apple_ref/doc/uid/TP30000890">"http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeQuickTour/index.html#//apple_ref/doc/uid/TP30000890">Creating a Project tutorial</a> I successfully get through to "Building the Application" and get hung up with a build error:

<blockquote><font color="maroon">Building target “Hello” — (1 error)
        mkdir /Users/Chinook/ObjC/Hello/build/Deployment/Hello.app/Contents/MacOS
    cd /Users/Chinook/ObjC/Hello
    /usr/bin/gcc-4.0 -o /Users/Chinook/ObjC/Hello/build/Deployment/Hello.app/Contents/MacOS/Hello -L/Users/Chinook/ObjC/Hello/build/Deployment -F/Users/Chinook/ObjC/Hello/build/Deployment -filelist /Users/Chinook/ObjC/Hello/build/Hello2.build/Deployment/Hello.build/Objects-normal/ppc/Hello.LinkFileList -framework Carbon -arch ppc
/usr/bin/ld: Undefined symbols:
_InsertRect
collect2: ld returned 1 exit status
        /usr/bin/ld: Undefined symbols:
        _InsertRect
        collect2: ld returned 1 exit status
Build failed for target "Hello" (1 error)</font></blockquote>

I've redone the exercise three times carefully checking that I followed instructions and didn't make any typos.  The only difference between the Xcode tutorial and what I'm seeing (so far) in Xcode is in the Project > Set Active Build Configuration menu. The tutorial says choose Release, but what I see for choices are "Development," "Deployment" and "Default."  Choosing the second or third option I get the above error. Choosing the first option it builds without an error, but will not run (error msg: You cannot open the application Hello.app because it may be damaged or incomplete).

I suppose I should set Xcode aside until I get further into Carbon and Cocoa, but I can't see the point in an introductory tutorial if one can't successfully get through it :-)

Anyone have any pointers?

Thank you,
Lee C


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode beginner problem (tutorial build)
      • From: Markus Hitter <email@hidden>
  • Prev by Date: Re: Help needed with install path and bundling libraries
  • Next by Date: Re: SCM error with Subversion
  • Previous by thread: Re: where is build product?
  • Next by thread: Re: Xcode beginner problem (tutorial build)
  • Index(es):
    • Date
    • Thread