ZeroLink: unknown symbol

Discussion in 'Programmer Misc' started by Gadgetman, Jan 2, 2008.

  1. Gadgetman

    Gadgetman Guest

    I have some sample code that I am trying to compile. I have identified
    the following extract to be the culprit - it compiles fine (using
    Xcode 2.4.1) - so I must have the correct headers etc.

    deviceNameAsCFString =
    CFStringCreateWithCString(kCFAllocatorDefault, deviceName,


    Yet on execution I get this error:-

    ZeroLink: unknown symbol '_kCFAllocatorDefault'
    Abort trap

    I have tried enabling/disabling the ZeroLink option and it always
    compiles without errors yet I get the execution error.

    What is the problem here?
    Gadgetman, Jan 2, 2008
    1. Advertisements

  2. Gadgetman

    Sean McBride Guest

    How are you disabling ZeroLink? From the bottom of the 'build' menu?
    Sean McBride, Jan 3, 2008
    1. Advertisements

  3. Gadgetman

    Gadgetman Guest

    I used Project->Edit Project Settings->Build, selected the "Debug"
    configuration, and unticked "ZeroLink" option.
    I hadnt noticed the option at the bottom of the build menu which I see
    was set to "Allow ZeroLink". I have now unticked it and I do indeed
    get link errors. I would have thought that the project settings would
    be sufficient!
    Gadgetman, Jan 3, 2008
  4. Gadgetman

    Sean McBride Guest

    Target settings override project settings, maybe that's what happened.
    Sean McBride, Jan 4, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.