header.h
namespace VectorMath {
static FVector Make(float X, float Y, float Z);
}
file.cpp
namespace VectorMath {
static FVector Make(float X, float Y, float Z)
{
FVector ret;
ret.X = X;
ret.Y = Y;
ret.Z = Z;
return ret;
}
}
error
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xstring(541): error C2129: static function 'FVector VectorMath::Make(float,float,float)' declared but not defined 1> c:\programming****\vectormath.h(19) : see declaration of 'VectorMath::Make'
The error is pointing me to xstring (part of the standard string library) line 541 which seems to bare no relevance to anything at all.
I'd like to note that removing "static" gives me linker errors telling me "Make" is an unresolved external symbol...
static
from both the declaration and the definition.