robster.cpp:12:17: error: cannot initialize a variable of type 'CFStringRef' (aka 'const __CFString *') with an rvalue of type 'CFTypeRef' (aka 'const void *') CFStringRef languageCodeRef = CFLocaleGetValue(localeRef, kCFLocaleLanguageCode); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.