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,

    kCFStringEncodingASCII);


    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
    1. Advertisements

  2. Gadgetman

    Sean McBride Guest

    In article
    <>,
    Gadgetman <> wrote:

    > 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,
    >
    > kCFStringEncodingASCII);
    >
    >
    > 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?


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

  3. Gadgetman

    Gadgetman Guest

    On Jan 3, 4:27 am, Sean McBride <> wrote:
    > In article
    > <>,
    >
    >
    >
    > Gadgetman <> wrote:
    > > 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,

    >
    > > kCFStringEncodingASCII);

    >
    > > 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?

    >
    > How are you disabling ZeroLink? From the bottom of the 'build' menu?


    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
    #3
  4. Gadgetman

    Sean McBride Guest

    In article
    <>,
    Gadgetman <> wrote:

    > 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!


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

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.
Similar Threads
  1. Bob Bethune
    Replies:
    6
    Views:
    415
    David Dunham
    Sep 21, 2003
  2. Jim Thomason

    Zerolink by mistake

    Jim Thomason, Apr 11, 2004, in forum: Programmer Help
    Replies:
    2
    Views:
    243
    Wade Williams
    Apr 14, 2004
  3. jimcath
    Replies:
    6
    Views:
    430
    Thomas Engelmeier
    Sep 29, 2004
  4. Ruben

    Zerolink and static library

    Ruben, Oct 29, 2004, in forum: Programmer Help
    Replies:
    0
    Views:
    221
    Ruben
    Oct 29, 2004
  5. mlabs

    zerolink

    mlabs, Oct 4, 2007, in forum: Programmer Help
    Replies:
    9
    Views:
    277
    mlabs
    Oct 5, 2007
  6. Fonarix

    XCode zerolink option...

    Fonarix, Nov 14, 2007, in forum: Programmer Help
    Replies:
    1
    Views:
    248
    Fonarix
    Nov 14, 2007
  7. Gadgetman

    ZeroLink: unknown symbol

    Gadgetman, Jan 2, 2008, in forum: Programmer Help
    Replies:
    3
    Views:
    191
    Sean McBride
    Jan 4, 2008
  8. Roy Dalpra

    Can't boot, unknown symbol

    Roy Dalpra, Jul 14, 2006, in forum: Mac
    Replies:
    22
    Views:
    449
    Michelle Steiner
    Jul 17, 2006
Loading...