Re: No matching function for call to CFStringGetCString
Re: No matching function for call to CFStringGetCString
- Subject: Re: No matching function for call to CFStringGetCString
- From: Steve Christensen <email@hidden>
- Date: Mon, 12 Dec 2016 11:37:58 -0800
Is the compiler error saying that it cannot find CFStringGetCString() in general or that it has an issue with one or more of the parameters or their types?
> On Dec 12, 2016, at 11:23 AM, Michael David Crawford <email@hidden> wrote:
>
> I'm trying to convert a CFStringRef to a C string so I can print it to
> the terminal for debugging:
>
> char catStr[ 256 ];
> CFStringGetCString( ref, catStr, 256, kCFStringEncodingMacRoman );
>
> I get "No matching function for call to CFStringGetCString" and
> similarly for CFStringGetCStringPtr;
>
> Both are declared in CFString.h. I've got;
>
> #include <CoreFoundation/CoreFoundation.h>
> #include <CoreFoundation/CFString.h>. // Just to be sure
>
> How can either the compiler see the declaration, or if that's not
> going to work, how can I convert my CFStringRef to a C string?
>
> I Am Eternally In Your Debt,
>
> Michael David Crawford, Baritone
> email@hidden
>
> One Must Not Trifle With Wizards For It Makes Us Soggy And Hard To Light.
_______________________________________________
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