Xcode 报错duplicate symbols for architecture x86_64_xcode 12 看不了 duplicate for architecture x86_64-CSDN博客

网站介绍:文章浏览阅读520次。现象// 报错代码// a.htemplate<typename T>struct A {public: A(int a):a_(a){std::cout << "A";}private: int a_;};// 构造函数的特化?// 感觉写法并不标准,因为实际需要进行类模板的特化// 但报错原因暂不能解释清楚=_= 欢迎高手解惑!template<>A<std::string>::A(int a):a_(a){std_xcode 12 看不了 duplicate for architecture x86_64