Page 1 of 1

How to use novodex engine with ogre?

Posted: Mon Apr 18, 2005 5:54 pm
by oldfox
Hi, I coded a little flight simulator with glut and novodex, and now I just would like to adapt it with ogre.

But, as soon as I include the novodex part ine the project, I get hundreds of bad compilation errors :oops: :oops:

A little sample :

Code: Select all

warning C4002: too many actual parameters for macro 'calloc'
warning C4229: anachronism used : modifiers on data are ignored
error C2040: 'Ogre::sMemManager' : 'void *' differs in levels of indirection from 'Ogre::MemoryManager'
error C2491: 'Ogre::MemoryManager::sMemManager' : definition of dllimport static data member not allowed
error C2143: syntax error : missing ';' before 'Ogre::MemoryManager::sMemManager'
error C2501: 'Ogre::MemoryManager::sMemManager' : missing storage-class or type specifiers
error C2371: 'Ogre::sMemManager' : redefinition; different basic types

Seems novodex and ogre aren't good friends... How do you solve those conflicts problems??

Posted: Mon Apr 18, 2005 6:01 pm
by jacmoe
Novodex and Ogre gets along quite nicely, actually!
The Zeus Engine is using it, amongst others.

((Enter 'novodex' in the forum search box))

Posted: Mon Apr 18, 2005 6:01 pm
by haffax
Either include the novodex-headers in front of the ogre headers. or wrap them this way:

Code: Select all

#include <OgreNoMemoryMacros.h>
// here go the novodex headers.
#include <OgreMemoryMacros.h>

Posted: Mon Apr 18, 2005 6:07 pm
by jacmoe
Here is NogreDex: Look! Some falling boxes! :)

Posted: Mon Apr 18, 2005 6:38 pm
by oldfox
Wow thanks for the quick answer! Your tip seems to be working Tanis thx!!

Now I still have to translate a glut program into oriented object ogre :P :lol:

Posted: Wed Apr 20, 2005 5:17 pm
by gfm
BTW, I've been working on updating the nogredex framework, you can check out my progress here: