Here's the code snip:
But the linker seems to think that the "*" function is not defined for vec = mat * vec:Code:template<typename T> class matrix3 { ... friend vector3<T> operator * (const matrix3<T>& a, const vector3<T>& v); ... }; template<typename T> vector3<T> operator * (const matrix3<T>& a, const vector3<T>& b) { // do stuff, return vector3<T>(foo,bar,gah); } ------ void otherFunc() // in another file { vector3f foo = someMatrix * someVector; }
error LNK2019: unresolved external symbol "class vector3<float> __cdecl operator*(class matrix3<float> const &,class vector3<float> const &)" (??D@YA?AV?$vector3@M@@ABV?$matrix3@M@@ABV0@@Z) referenced in function "void __cdecl otherFunc()"
ideas? Problem with template (again)?
I'm using MSVC .NET on a Win XP machine.



LinkBack URL
About LinkBacks


