Strange errors that I can't figure out.

emberintherain
Posts: 3
Joined: Sun Mar 06, 2011 2:34 am

Strange errors that I can't figure out.

Post by emberintherain »

I am having a hard time figuring out where these errors are coming from. I have linked the libraries the way It says to, I have included,

#include "btBulletDynamicsCommon.h"

and still I am getting these errors.

Does anyone know why these errors are happening?

Code: Select all

c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(467) : error C2143: syntax error : missing ';' before 'constant'
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(467) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(470) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(471) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(472) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(473) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(474) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(475) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(476) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(477) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(478) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(479) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(480) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(481) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(482) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(483) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(484) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(485) : error C2440: '=' : cannot convert from 'btVector3' to 'double'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(487) : error C2065: 'px' : undeclared identifier
1>c:\development\bullet-2.77\src\bulletcollision\broadphasecollision\btdbvt.h(488) : error C2664: 'btDot' : cannot convert parameter 2 from 'double' to 'const btVector3 &'
1>        Reason: cannot convert from 'double' to 'const btVector3'
1>        No constructor could take the source type, or constructor overload resolution was ambiguous
1>TestEmitter.cpp
1>c:\program files\maxon\cinema 4d r12 demo\plugins\nebula particle system\source\objects\testemitter.cpp(9) : fatal error C1083: Cannot open include file: 'NebulaEmitter.h': No such file or directory
emberintherain
Posts: 3
Joined: Sun Mar 06, 2011 2:34 am

Re: Strange errors that I can't figure out.

Post by emberintherain »

I figured it out. I am trying to use bullet with a plugin that I am writing for Cinema 4D.. And the cinema 4D API uses "pi" as a constant.. because of this there was a conflict with a variable in bullet that was called "pi" I just renamed the bullet variable and the problem was solved..

Thanks,

Shawn