Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
oldfox
Halfling
Posts: 57 Joined: Mon Apr 18, 2005 5:46 pm
Quote
0
login to like this post
Post
by oldfox » Mon Apr 18, 2005 5:54 pm
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
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??
jacmoe
OGRE Retired Moderator
Posts: 20570 Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:
Quote
0
login to like this post
Post
by jacmoe » Mon Apr 18, 2005 6:01 pm
Novodex and Ogre gets along quite nicely, actually!
The Zeus Engine is using it, amongst others.
((Enter 'novodex ' in the forum search box))
Last edited by
jacmoe on Mon Apr 18, 2005 6:02 pm, edited 1 time in total.
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
haffax
OGRE Retired Moderator
Posts: 4823 Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:
Quote
0
login to like this post
Post
by haffax » Mon Apr 18, 2005 6:01 pm
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>
jacmoe
OGRE Retired Moderator
Posts: 20570 Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:
Quote
0
login to like this post
Post
by jacmoe » Mon Apr 18, 2005 6:07 pm
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
oldfox
Halfling
Posts: 57 Joined: Mon Apr 18, 2005 5:46 pm
Quote
0
login to like this post
Post
by oldfox » Mon Apr 18, 2005 6:38 pm
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