Code Weirdness
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