No matching function for call to CFStringGetCString
No matching function for call to CFStringGetCString
- Subject: No matching function for call to CFStringGetCString
- From: Michael David Crawford <email@hidden>
- Date: Mon, 12 Dec 2016 11:23:50 -0800
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