Error while compiling custom joints with double

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Error while compiling custom joints with double

Postby jiandingzhe » Thu Oct 13, 2011 7:48 am

The dMath library is not ready to use with double precision. It has some functions duplicate with their double precision version.

Code: Select all
In file included from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/NewtonCustomJoint.h:22,
                 from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/CustomJointLibraryStdAfx.h:80,
                 from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/Custom6DOF.cpp:16:
/home/XXX/Downloads/development/newton-dynamics-rev919/packages/dMath/dVector.h:75: error: 'dBigVector::dBigVector(const TemplateVector<double>&)' cannot be overloaded
/home/XXX/Downloads/development/newton-dynamics-rev919/packages/dMath/dVector.h:68: error: with 'dBigVector::dBigVector(const TemplateVector<double>&)'
In file included from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/NewtonCustomJoint.h:23,
                 from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/CustomJointLibraryStdAfx.h:80,
                 from /home/XXX/Downloads/development/newton-dynamics-rev919/packages/dCustomJoints/Custom6DOF.cpp:16:
/home/XXX/Downloads/development/newton-dynamics-rev919/packages/dMath/dMatrix.h:59: error: 'void dMatrix::TransformTriplex(double*, int, const double*, int, int) const' cannot be overloaded
/home/XXX/Downloads/development/newton-dynamics-rev919/packages/dMath/dMatrix.h:58: error: with 'void dMatrix::TransformTriplex(double*, int, const double*, int, int) const'
make[2]: *** [packages/CMakeFiles/dJointLibrary.dir/dCustomJoints/Custom6DOF.cpp.o] Error 1
make[1]: *** [packages/CMakeFiles/dJointLibrary.dir/all] Error 2
make: *** [all] Error 2

User avatar
jiandingzhe
 
Posts: 48
Joined: Fri Jul 08, 2011 11:21 am
Location: Beijing

Re: Error while compiling custom joints with double

Postby Julio Jerez » Thu Oct 13, 2011 11:26 am

Did you define dFloat as double?

the class does has if def around the conflicting functions,
#ifndef __USE_DOUBLE_PRECISION__
void dgMatrix::TransformTriplex (dgFloat64* const dst, dgInt32 dstStrideInBytes, const dgFloat64* const src, dgInt32 srcStrideInBytes, dgInt32 count) const
...


what version are yu using?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Error while compiling custom joints with double

Postby jiandingzhe » Sat Oct 15, 2011 4:55 am

Julio Jerez wrote:Did you define dFloat as double?

the class does has if def around the conflicting functions,
#ifndef __USE_DOUBLE_PRECISION__
void dgMatrix::TransformTriplex (dgFloat64* const dst, dgInt32 dstStrideInBytes, const dgFloat64* const src, dgInt32 srcStrideInBytes, dgInt32 count) const
...


what version are yu using?

I defined __USE_DOUBLE_PRECISION__ globally, by adding it to -D to gcc.
I get the source from SVN several days ago. It's rev919.
User avatar
jiandingzhe
 
Posts: 48
Joined: Fri Jul 08, 2011 11:21 am
Location: Beijing


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron