• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: No matching function for call to CFStringGetCString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >No matching function for call to CFStringGetCString (From: Michael David Crawford <email@hidden>)

  • Prev by Date: Re: No matching function for call to CFStringGetCString
  • Next by Date: Re: Breakpoints - disable all?
  • Previous by thread: Re: No matching function for call to CFStringGetCString
  • Next by thread: Xcode 8.2 and Mac xib settings: can't set to Xcode 7.x format?
  • Index(es):
    • Date
    • Thread