Can't compile - error in Nvidia files ? xD

mih

16-02-2009 19:40:59

Hi, it's my first post on this forum :)
I have a problem with compiling the NxOgre. When i'm compiling it in the debug_static it's ok, but when I want to compile in debug ( to get the dll file) i get these errors:

1>c:\program files\nvidia corporation\nvidia physx sdk\v2.8.1\sdks\physics\include\nxshapedesc.h(291) : error C4716: 'NxShapeDesc::operator=' : must return a value
1>c:\program files\nvidia corporation\nvidia physx sdk\v2.8.1\sdks\physics\include\nxshapedesc.h(291) : error C4716: 'NxShapeDesc::operator=' : must return a value
1>c:\program files\nvidia corporation\nvidia physx sdk\v2.8.1\sdks\physics\include\nxshapedesc.h(291) : error C4716: 'NxShapeDesc::operator=' : must return a value
1>c:\program files\nvidia corporation\nvidia physx sdk\v2.8.1\sdks\physics\include\nxshapedesc.h(291) : error C4716: 'NxShapeDesc::operator=' : must return a value
1>c:\program files\nvidia corporation\nvidia physx sdk\v2.8.1\sdks\physics\include\nxshapedesc.h(291) : error C4716: 'NxShapeDesc::operator=' : must return a value

it's about this piece of code:

NxShapeDesc& operator=( const NxShapeDesc& ) {};

edit// i'm using the latest version of NxOgre from SVN.
ps. sorry for my english ;)

betajaen

16-02-2009 19:42:54

Strange, I haven't had anything like that before.

Try changing it to:

NxShapeDesc& operator=( const NxShapeDesc& ) {return *this};

mih

16-02-2009 19:49:43

thanks it works now :)

just to don't mess the forum i have one more question :)
I used to have error with files OgreNoMemoryMacros.h and OgreMemoryMacros.h so I just commented them. Do I have to replace them with something else ?

#if NX_USE_OGRE
#// include <OgreNoMemoryMacros.h>
#endif

#include <Nx.h>
#include <NxPhysics.h>

#if NX_USE_OGRE
#// include <OgreMemoryMacros.h>
#endif

betajaen

16-02-2009 20:11:00

Just comment them, or take them out.

mih

16-02-2009 20:29:30

ok thanks for fast replays :)
...one more if I can ;D
i downloaded the cake 4.0T1 and I can't compile it xD i get 73 error's :

1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(357) : error C2228: left of '.mDisableGravity' must have class/struct/union
1> type is 'NxU32'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(358) : error C2039: 'mFreeze' : is not a member of 'NxOgre::ActorParams'
1> d:\gamedev\ogresdk\ogre\nxogre\include\NxOgreActor.h(179) : see declaration of 'NxOgre::ActorParams'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(358) : error C2228: left of '.FreezeRotation' must have class/struct/union
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(360) : error C2275: 'NxOgre::Body' : illegal use of this type as an expression
1> d:\gamedev\ogresdk\ogre\nxogre\include\NxOgreBody.h(38) : see declaration of 'NxOgre::Body'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(363) : error C2227: left of '->RenderPtr' must point to class/struct/union/generic type
1> type is 'void *'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(363) : error C2227: left of '->getRenderable' must point to class/struct/union/generic type
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(667) : error C2227: left of '->RenderPtr' must point to class/struct/union/generic type
1> type is 'void *'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(671) : error C2227: left of '->RenderPtr' must point to class/struct/union/generic type
1> type is 'void *'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(671) : error C2227: left of '->getRenderable' must point to class/struct/union/generic type
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(900) : error C2039: 'Raycaster' : is not a member of 'NxOgre'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(900) : error C2143: syntax error : missing ';' before '*'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(900) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(900) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(819) : error C2065: 'mRay' : undeclared identifier
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(819) : error C2039: 'createRaycaster' : is not a member of 'NxOgre::Scene'
1> d:\gamedev\ogresdk\ogre\nxogre\include\NxOgreScene.h(518) : see declaration of 'NxOgre::Scene'
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(820) : error C2065: 'mRay' : undeclared identifier
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(820) : error C2227: left of '->origin' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(821) : error C2065: 'mRay' : undeclared identifier
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(821) : error C2227: left of '->normal' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(822) : error C2065: 'mRay' : undeclared identifier
1>d:\gamedev\ogresdk\ogre\nxogre\cake\source\CakeOgre.h(822) : error C2227: left of '->distance' must point to class/struct/union/generic type
1> type is ''unknown-type''

etc.
I think it's because i don't have the 1.0`225T version of NxOgre, but i didn't find the place from I can download the older version of Cake...can someone help ?

//EDIT: Ok i finally found it ^^