Bug in ovr_math.h and unresolved symbol
I ran into the following 2 bugs while trying to compile my Visual C++ program modified for DK 2.
(I had a DK 1 version which ran fine.)
1. OVR_Math.h: Missing SingularityRadius
I had to replace Math< > with
// Single-precision Math constants class.
template<>
class Math<float>
{
public:
typedef double OtherFloatType;
static const float SingularityRadius; // 0.0000001f for Gimbal lock numerical problems
};
Same for Math<double>
This also meant I had to define these values in a .cpp file.
2. After fixing (1) I got an unresolved symbol error ( ___report_rangecheckfailure ) for a number of .obj files when linking. For example,
libovrd.lib(OVR_Win32_Socket.obj) : error LNK2019:
unresolved external symbol ___report_rangecheckfailure referenced in function "public: void __thiscall OVR::Net::SockAddr::Set(char const *,unsigned short,int)"
I haven't tracked that one down yet.
(I had a DK 1 version which ran fine.)
1. OVR_Math.h: Missing SingularityRadius
I had to replace Math< > with
// Single-precision Math constants class.
template<>
class Math<float>
{
public:
typedef double OtherFloatType;
static const float SingularityRadius; // 0.0000001f for Gimbal lock numerical problems
};
Same for Math<double>
This also meant I had to define these values in a .cpp file.
2. After fixing (1) I got an unresolved symbol error ( ___report_rangecheckfailure ) for a number of .obj files when linking. For example,
libovrd.lib(OVR_Win32_Socket.obj) : error LNK2019:
unresolved external symbol ___report_rangecheckfailure referenced in function "public: void __thiscall OVR::Net::SockAddr::Set(char const *,unsigned short,int)"
I haven't tracked that one down yet.
