Zerocost-exception

Discussion in 'Mac Programming' started by amudham, Apr 16, 2009.

  1. macrumors newbie

    Joined:
    Apr 15, 2009
    #1
    error: Mac OS X version 10.5 or later is needed for zerocost-exception.

    How to fix this issue? I want my application to run on both 10.4 and 10.5.

    Thanks in advance.
     
  2. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #2
    It sounds like you're building 64 bit. If so, you need to change the deployment target, but only for the 64 bit part of the build (so you end up with 32 bit targeting 10.4 and 64 bit targeting 10.5).
     
  3. thread starter macrumors newbie

    Joined:
    Apr 15, 2009
    #3
    So it will end up with 2 different binaries, one for 32 and one for 64 right?
    If so, is there a way to have a single binary which fix this issue?
     
  4. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #4
    You'll end up with three or four binaries*, typically, merged together into one. This is called a universal binary, and is the standard way of doing things on OSX.

    *x86, x86-64, powerpc, and (maybe) powerpc64
     

Share This Page