Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Ouch: build failed!

Ouch: build failed!
Thread Tools
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 31, 2002, 01:17 PM
 
I added a new window to my app by subclassing NSWindowController and creating a new nib file. I connected everything up and then I created a method in my main controller file that would create a new instance of my new NSWindowController subclass on a double click. Now I get a 'Build failed (see build log for details)' error. Here is the most interesting line from the build log but I don't know what it means:

...failed MasterObjectFile.Combine /Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/master.o ...

kman
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Mar 31, 2002, 05:37 PM
 
The interesting lines are a bit further up, but probably got lost under all the jam crap.
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 31, 2002, 06:40 PM
 
Do these mean anything?

warning: <CocoaMed>CocoaMed.app depends on itself
...updating 10 target(s)...
BuildPhase CocoaMed.app
Completed phase <CopyHeaders> for CocoaMed.app
Cp /Users/kmarek/Documents/CocoaMed/build/CocoaMed.app/Contents/Info.plist
Cp /Users/kmarek/Documents/CocoaMed/build/CocoaMed.app/Contents/pbdevelopment.plist
BuildPhase CocoaMed.app
Completed phase <CopyResources> for CocoaMed.app
BuildPhase CocoaMed.app
Completed phase <DeriveAndCompileSources> for CocoaMed.app
MasterObjectFile.Combine /Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/master.o
/usr/bin/ld: multiple definitions of symbol .objc_class_name_reference
/Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/Objects/ppc/reference.o definition of absolute .objc_class_name_reference (value 0x0)
/Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/Objects/ppc/ReferenceController.o definition of absolute .objc_class_name_reference (value 0x0)

/usr/bin/cc -arch ppc -keep_private_externs -nostdlib -filelist "/Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/Objects/LinkFileListPrelink" -r -o "/Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/master.o"

...failed MasterObjectFile.Combine /Users/kmarek/Documents/CocoaMed/build/intermediates/CocoaMed.build/master.o ...
     
kman42  (op)
Professional Poster
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Mar 31, 2002, 07:33 PM
 
Well, I figured it out. Those two definitions of reference were because I unintentionally did this:
#import "reference.m" instead of:
#import "reference.h"

kman
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:29 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2