|
안녕하세요
만해입니다.
어제 드뎌 셤이 끝났네요
이제 이번주 중순부터 로비작업을 크크~
어제부터
이전에 만들었던 암호화를 한번 보완해 볼려고 작업 들어 갔는데요
template <typename T> T TCrypt::XOR ( T const Operand1, T const Operand2 , int const ByteLen)
{
T Dest;
for ( int i = 0 ; i < ByteLen; i++ )
{
Dest.Bytes[i].bits.a = Operand1.Bytes[i].bits.a ^ Operand2.Bytes[i].bits.a;
Dest.Bytes[i].bits.b = Operand1.Bytes[i].bits.b ^ Operand2.Bytes[i].bits.b;
Dest.Bytes[i].bits.c = Operand1.Bytes[i].bits.c ^ Operand2.Bytes[i].bits.c;
Dest.Bytes[i].bits.d = Operand1.Bytes[i].bits.d ^ Operand2.Bytes[i].bits.d;
Dest.Bytes[i].bits.e = Operand1.Bytes[i].bits.e ^ Operand2.Bytes[i].bits.e;
Dest.Bytes[i].bits.f = Operand1.Bytes[i].bits.f ^ Operand2.Bytes[i].bits.f;
Dest.Bytes[i].bits.g = Operand1.Bytes[i].bits.g ^ Operand2.Bytes[i].bits.g;
Dest.Bytes[i].bits.h = Operand1.Bytes[i].bits.h ^ Operand2.Bytes[i].bits.h;
}
return Dest;
}
이렇게 되어 있는 소스가 있고
원래 템플릿이 아닌데 제가 한번 지정해 봤거든요
이렇게 하니깐
컴파일 단계에서는 에러가 안나는데
링크단계에서 에러가 나네요
[Linker Error] Unresolved external 'Data16Word__u TCrypt::XOR<Data16Word__u>(const Data16Word__u, const Data16Word__u, const int)' referenced from C:\PROGRAMMING\암호화\ENCRYPT.OBJ
[Linker Error] Unresolved external 'Data32Word__u TCrypt::XOR<Data32Word__u>(const Data32Word__u, const Data32Word__u, const int)' referenced from C:\PROGRAMMING\암호화\ENCODE.OBJ
[Linker Error] Unresolved external 'Data8Word__u TCrypt::XOR<Data8Word__u>(const Data8Word__u, const Data8Word__u, const int)' referenced from C:\PROGRAMMING\암호화\ENCODE.OBJ
이런 에러가 납니다.
어떻게 해결 해야 하는지 좀 알려주세요
아참 그리고 대한민국~
오늘 독일과의 경기 승패에 무관하게 열심히만 해주면 좋겠네요
|