我创建了一个libmariadbclient的干净版本并将其集成到我的项目中。每当我尝试构建所述项目时,我都会失败并出现错误:
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_close", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
"_libiconv_open", referenced from:
_mariadb_convert_string in libmariadbclient.a(my_charset.c.o)
ld: symbol(s) not found for architecture x86_64
然后我将libiconvlib.dylid
添加到我的项目中,清理它并尝试再次构建,但我仍然得到相同的错误。有什么想法吗?