LLVM: Issue casting ObjC pointer type to C pointer type
I'm trying to build a project of mine from Xcode 3 in Xcode 4. I have a NSURL that I had been using in a Carbon API by casting it to CFURLRef. I've always done that like so:
NSURL * url = [NSURL fileURLWithPath:filePathStr];
CFURLRef cfURLRef = (CFURLRef)url;
This used to work under GCC, but LLVM complains with:
"Cast of Objective-C pointer type 'NSURL *' to C pointer type 'CFURLRef'"
I can't find anything in a google search about this message. I don't understand the LLVM compiler well enough, or C compilers well enough in general to figure out what the issue is (Java is my first language).
I tried looking in the LLVM docs but got totally lost.
Any ideas on a workaround? I could just build the CFURLRef from scratch and not try using NSURL but I'd rather not if this is just some syntax issue.
|