ambiguity uint32 [solved]

Khuran

10-06-2010 08:09:26

When I include OgreOde_core and build, the compiler gives an ambiguity error in common.h: 'uint32' could be 'unsigned int uint32' from odeconfig.h or 'Ogre::uint32' from ogreplatform.h .
I suppose that I could 'fix' the matter by not using namespace Ogre, but that's annoying. Is there a better way to fix it?

Khuran

10-06-2010 13:42:05

Solved replacing the declaration in common.h with Ogre::uint32 .

dermont

11-06-2010 17:09:57

If your demo includes the ExampleApplication/ExampleFrameListener headers you probably just need to swap the order of your includes, e.g:


#include "OgreOde_Core.h"
#include "OgreOde_Prefab.h"
#include "OgreOde_Loader.h"
#include "ExampleApplication.h"
#include "ExampleFrameListener.h"

Khuran

11-06-2010 19:10:28

No, I don't use the example application and the like. :P