【发布时间】:2014-09-05 06:52:50
【问题描述】:
您好,我在运行此代码时遇到了以前从未见过的错误。实际上有 2 个错误。
这是第一个说 Apple Mach-O Linker (id) Error
“地址::setAddress(std::__1::basic_string, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::basic_string, std: :__1::allocator >, std::__1::basic_string, std::__1::allocator >)”,引用自:这是第二个 Apple Mach-O 链接器 (id) 错误 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
我在这个程序中有多个课程,所以我将它们链接到另一个网站,而不是在这里堆积。
这是我的代码的链接 https://gist.github.com/anonymous/646f6e2166c56688f739
提前谢谢各位。
void Address::setAddress(const string street, const string city, const string state, const string zipcode) {
setStreet(street);
setCity(city);
setState(state);
setZipcode(zipcode);
}
【问题讨论】:
标签: c++ xcode class inheritance