You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---原始邮件---
发件人: ***@***.***>
发送时间: 2023年10月11日(周三) 下午3:20
收件人: ***@***.***>;
抄送: ***@***.***>;
主题: [parallel101/course] print 函数打印模版特化问题 (Issue #26)
#include "print.h"
template
class TypeToID{
public:
static int const ID=-1;
};
template<> class TypeToID<void*>{
public:
static int const ID=1;
};
int main(){
print(TypeToID<void *>::ID); return 0;
}
链接报错 找不到符号
.rdata$.refptr._ZN8TypeToIDIPvE2IDE[.refptr._ZN8TypeToIDIPvE2IDE]+0x0): undefined reference to `TypeToID<void*>::ID'
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
链接报错 找不到符号
.rdata$.refptr._ZN8TypeToIDIPvE2IDE[.refptr._ZN8TypeToIDIPvE2IDE]+0x0): undefined reference to `TypeToID<void*>::ID'
The text was updated successfully, but these errors were encountered: