Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Patoma16

macrumors member
Original poster
May 19, 2010
45
0
Please help me asap, since i have a project due tomorrow (the app.) I can't manage to build after I added a lot of views. It all worked perfectly before, but ever since I used this code on the iPad app:


int y = 0;

-(IBAction) changeText:(id)sender
{
y++;
if (y>8) y=0;
[self updateText];

}

- (void)updateText {

switch (y) {
case 0: [userText setText:mad:"1"]; break;
case 1: [userText setText:mad:"10"]; break;
case 2: [userText setText:mad:"8"]; break;
case 3: [userText setText:mad:"6"]; break;
case 4: [userText setText:mad:"4"]; break;
case 5: [userText setText:mad:"7"]; break;
case 6: [userText setText:mad:"5"]; break;
case 7: [userText setText:mad:"9"]; break;
case 8: [userText setText:mad:"3"]; break;
case 9: [userText setText:mad:"2"]; break;


}

}


on each of the ViewController, it told me that the symbols were duplicated or something, so I chacnged the "y" in every ViewController (except the original) to random letters that don't repeat. Well, now I get this error:



Ld build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame normal i386
cd /Users/pato/Documents/ESBoardGame
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -F/Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator -filelist /Users/pato/Documents/ESBoardGame/build/ESBoardGame.build/Debug-iphonesimulator/ESBoardGame.build/Objects-normal/i386/ESBoardGame.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -prebind -o /Users/pato/Documents/ESBoardGame/build/Debug-iphonesimulator/ESBoardGame.app/ESBoardGame

Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


I have no idea why? The thing isn't letting me compile. i am pissed so much, due to the fact this is my science report due tomorrow!!!!!!

Please help me, I am in great despair!!!!!
 
Deep Breath

Code:
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

I think you probably mistyped some code somewhere (ld). It's hard to tell from the section of code you posted.

Nick
 
Don't suppose you could create a new project and copy and paste your code across? Piece by piece, if you can, and compile as you go.
 
I found the problem! I accidentally deleted the man file... just re-added it and it compilied successfully!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.