Strange Xcode Error

Discussion in 'iOS Programming' started by Programmer, Jan 12, 2010.

  1. Programmer macrumors member

    Programmer

    Joined:
    Jun 16, 2009
    #1
    Does anyone know what this means?
    Command
    HTML:
    Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1
    
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Look at the Build Results and see what it says. It should give more info.
     
  3. Programmer thread starter macrumors member

    Programmer

    Joined:
    Jun 16, 2009
    #3
    i'v tried that

    Of course i've tried that, its the most obvious thing to do when you get an error, but i get this:
    HTML:
    ld: duplicate symbol _right1Appaered in /Users/harryslotwiner1/Documents/ProbeDestroyer2/build/ProbeDestroyer2.build/Debug-iphonesimulator/ProbeDestroyer2.build/Objects-normal/i386/Game.o 
    
    and the first error "duplicate symbol _right1Appaered" doesn't make any sense; right1Appaered is a bool that I have set up, but I've checked multiple times and i have not declared it more than one time.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    How is it declared, and where? Post some code.
     
  5. Programmer thread starter macrumors member

    Programmer

    Joined:
    Jun 16, 2009
    #5
    code

    i declared it in the .h as a bool like so:

    BOOL right1Appaered;

    it had been working up until now.
     

Share This Page