Porting to Digital Mars
by Paul Runde · in Torque Game Engine · 03/12/2003 (6:38 am) · 0 replies
I have been attempting to port Torque to the Digital Mars C++ IDE. One of the first problems I have run into with the engine.lib project is errors in mPoint.h. The error message:
Error: c:\torque\engine\math/mPoint.h(904): need explicit cast for function parameter 1 to get
c:\torque\engine\math/mPoint.h(904): from: Point2F
c:\torque\engine\math/mPoint.h(904): to : float *
The code:
inline void Point2F::normalize()
{
m_point2F_normalize(*this); // error parameter declared as F32 *
}
I've searched the Digital Mars documentation to see if there is any way to suppress the error report without any luck. I know this compiles fine in Dev-C++ and assume the same for MSVC. I could write in the explicit cast myself but would prefer to port the source with minimal changes. This particular error occur several dozen times throughout the code.
Any tips to get around this without rewriting code everytime I download a new version?
Thanks
Paul
Error: c:\torque\engine\math/mPoint.h(904): need explicit cast for function parameter 1 to get
c:\torque\engine\math/mPoint.h(904): from: Point2F
c:\torque\engine\math/mPoint.h(904): to : float *
The code:
inline void Point2F::normalize()
{
m_point2F_normalize(*this); // error parameter declared as F32 *
}
I've searched the Digital Mars documentation to see if there is any way to suppress the error report without any luck. I know this compiles fine in Dev-C++ and assume the same for MSVC. I could write in the explicit cast myself but would prefer to port the source with minimal changes. This particular error occur several dozen times throughout the code.
Any tips to get around this without rewriting code everytime I download a new version?
Thanks
Paul
About the author