• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Code Weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Weirdness


  • Subject: Re: Code Weirdness
  • From: Eric Albert <email@hidden>
  • Date: Fri, 3 Feb 2006 11:30:36 -0800

On Feb 3, 2006, at 11:06 AM, Jim Brown wrote:

Anyone know why this simple little chunk of code results in a SIGABRT???

------------------
#include <stdio.h>
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>

#include "setSSO.h"


int main (int argc, const char * argv[]) { CFURLRef fileURL = NULL; CFDateRef xmlData = NULL; OSStatus err;



fileURL = CFURLCreateWithFileSystemPath (kCFAllocatorDefault,AUTH_FILE,kCFURLPOSIXPathStyle,false);
if (fileURL != NULL && CFURLCreateDataAndPropertiesFromResource (kCFAllocatorDefault, fileURL, &xmlData, NULL, NULL, &err))
{
printf("file found\n");
}


    return 0;
}
------------------

here is the output:

Running…
ZeroLink: unknown symbol '_kCFAllocatorDefault'
Program received signal:  "SIGABRT".
Previous frame inner to this frame (corrupt stack?)
Previous frame inner to this frame (corrupt stack?)

Maybe you aren't linking to the CoreFoundation framework?

I'd suggest turning off ZeroLink and seeing if you get any errors from the linker when you build your project. I suspect you'll get an error about missing symbols from the CoreFoundation framework.

Hope this helps,
Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Code Weirdness (From: Jim Brown <email@hidden>)

  • Prev by Date: Code Weirdness
  • Next by Date: Re: Code Weirdness
  • Previous by thread: Code Weirdness
  • Next by thread: Re: Code Weirdness
  • Index(es):
    • Date
    • Thread