• 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
Code Weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Code Weirdness


  • Subject: Code Weirdness
  • From: Jim Brown <email@hidden>
  • Date: Fri, 3 Feb 2006 11:06:09 -0800

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



Jim Brown
Stanford University
 _______________________________________________
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

  • Follow-Ups:
    • Re: Code Weirdness
      • From: Chris Espinosa <email@hidden>
    • Re: Code Weirdness
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: Debugger can't deal with source?
  • Next by Date: Re: Code Weirdness
  • Previous by thread: Re: crash in __static_initialization_and_destruction on 10.3.9 but not 10.4.4?
  • Next by thread: Re: Code Weirdness
  • Index(es):
    • Date
    • Thread