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: Jens Alfke <email@hidden>
- Date: Mon, 12 Dec 2016 12:49:38 -0800
On Dec 12, 2016, at 11:23 AM, Michael David Crawford < email@hidden> wrote:
I get "No matching function for call to CFStringGetCString" and similarly for CFStringGetCStringPtr;
Sounds like this is a C++ source file? This should be one of those compile errors that “flips open”. The nested error will point to the declaration of the function and show you the parameter types it takes vs. the ones you’re passing. Compare those and you can see the mismatch.
If this were C, I believe you’d get a more explicit message about the specific parameter and the expected vs. passed type.
And I second Doug’s warning about MacRoman. The only possible reason to use that encoding nowadays is to read some ancient text file generated by MacOS ≤ 9. It will NOT display non-ASCII characters correctly in Terminal. In general you should use UTF-8 everywhere.
—Jens |
_______________________________________________
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