NxOgre intro my project

Predat0R

05-08-2006 08:37:49

I add include, scr and lib from NxOgre to my project ( NxOgre work NORMAL !!!!) but in my project I have NxOgre - error
1)
v2.3.3\SDKs\Foundation\include\NxMath.h(38): fatal error C1189: #error : Error: min or max is #defined, probably in <windows.h>. Put #define NOMINMAX before including windows.h to suppress windows global min,max macros.
2)
nxOgre_world.cpp(32) : error C2491: 'Ogre::Singleton<T>::ms_Singleton' : definition of dllimport static data member not allowed
with
[
T=nxOgre::world
]

???

ColeZero

05-08-2006 14:37:31

First of all, you only need the lib and the includes of nxogre, you don't need the src..
Did you add the complete src of nxogre to your project.
if thats true, i think the compiler tries to compile it, remove the nxogre src from your project, add only the header and the lib in your project-settings..

Predat0R

05-08-2006 18:23:46

mScene->createStaticBody("Box01","nx.stairs1.mesh",new meshShape("nx.stairs1.mesh",mScene),Vector3(10,(2.47 / 2),10));

next error:

NxStream& MemoryWriteBuffer::storeBuffer(const void* buffer, NxU32 size)
{
NxU32 expectedSize = currentSize + size;
if(expectedSize > maxSize)
{
maxSize = expectedSize + 4096;

NxU8* newData = (NxU8*)NX_ALLOC(maxSize);
if(data)
{
memcpy(newData, data, currentSize);
NX_FREE(data);
}
data = newData;
}
memcpy(data+currentSize, buffer, size); <<<<<< error !!!
currentSize += size;
return *this;
}

betajaen

05-08-2006 18:40:51

That only happens if you compile as DEBUG. Compile as Release.