linker error, by the Xcode project of C++ console Application.


I also referred to this discussion (http://forum.photonengine.com/discussion/comment/17052#Comment_17052)


Header search path
Library search path
Other linker flag
Set it up.
However, the following error appears.
What is wrong?
What should I do now?


Undefined symbols for architecture x86_64:
"_CFRelease", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::Unicode2ANSI(wchar_t const*, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::ANSIString::ANSIConverter::ANSI2Unicode(char const*, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::Unicode2UTF8(wchar_t const*, unsigned int, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::UTF82Unicode(unsigned char const*, unsigned int, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::SizeOfWStrAsUTF8(wchar_t const*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
"_CFStringCreateWithBytes", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::Unicode2ANSI(wchar_t const*, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::Unicode2UTF8(wchar_t const*, unsigned int, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::SizeOfWStrAsUTF8(wchar_t const*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
"_CFStringCreateWithCString", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::ANSI2Unicode(char const*, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::UTF82Unicode(unsigned char const*, unsigned int, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
"_CFStringGetBytes", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::ANSI2Unicode(char const*, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::Unicode2UTF8(wchar_t const*, unsigned int, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::UTF82Unicode(unsigned char const*, unsigned int, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::SizeOfWStrAsUTF8(wchar_t const*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
"_CFStringGetCString", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::Unicode2ANSI(wchar_t const*, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
"_CFStringGetLength", referenced from:
ExitGames::Common::ANSIString::ANSIConverter::ANSI2Unicode(char const*, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::Unicode2UTF8(wchar_t const*, unsigned int, char*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::UTF82Unicode(unsigned char const*, unsigned int, wchar_t*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ExitGames::Common::UTF8String::UTF8Converter::SizeOfWStrAsUTF8(wchar_t const*, unsigned int) in libCommon-cpp_debug_macosx.a(AppleStringConverter.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Comments

  • KaiserludiKaiserludi admin
    edited March 6
    Hi @Joe_onosai.

    These errors indicate that you have not added CoreFoundation.framework to your project.
    To do so, please navigate to the 'General' tab of your project target it Xcode and select it from the available frameworks in the 'Linked Frameworks and Libraries' section.
  • edited March 13
    Hi @Kaiserludi.

    Thank you very much! !
    The advice was right.
    Build and run succeeded.
Sign In or Register to comment.