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