Re: Code Weirdness
Re: Code Weirdness
- Subject: Re: Code Weirdness
- From: Chris Espinosa <email@hidden>
- Date: Fri, 3 Feb 2006 11:34:11 -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?)
Try 1) turning off "Allow ZeroLink" in the Build menu, so you see
actual link errors; and 2) posting the build transcript, especially
the link line. This looks as if you are not linking with the
CoreFoundation framework.
Chris _______________________________________________
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