I use libxml to save game data. in order to support chinese character, i use iconv to convert format.
but a linke error was appeard:
Undefined symbols for architecture i386: "_iconv_open", referenced from: FConverter::code_convert(char*, char*, char*, unsigned long, char*, unsigned long)in GameData.o "_iconv", referenced from: FConverter::code_convert(char*, char*, char*, unsigned long, char*, unsigned long)in GameData.o "_iconv_close", referenced from: FConverter::code_convert(char*, char*, char*, unsigned long, char*, unsigned long)in GameData.o ld: symbol(s) not found for architecture i386
I was not familiar with mac os and xcode, so i try to resolve it refer to visual c++.
I found a configuration in target/Build Phase and search iconv, there are three dylib under the list.
libiconv.2.4.0.dylib
libiconv.2.dylib
libiconv.dylib.
i select libiconv.dylib. compile error was resolved.
but i am not sure is this the best solution, and will it cause another problem later.
does dylib mean dynamic library like dll? if i have to public or share my application with this dylib file as windows application combine dll file.
thanks a lot.