Ogre3D, OGRE_NEW gives editor errors

Posted by automaticoo on Game Development See other posts from Game Development or by automaticoo
Published on 2011-02-20T16:31:26Z Indexed on 2011/02/20 23:33 UTC
Read the original article Hit count: 478

Filed under:
|
|

Hello Game Developers,

I am trying to get more experienced with OGRE3D and I am following the basic tutorials on the website. All the code samples compile just fine.

The first time I encountered a "error" was in Basic Tutorurial 3.

The code line where visual studio says something is not right is :

mTerrainGroup = OGRE_NEW Ogre::TerrainGroup(mSceneMgr, Ogre::Terrain::ALIGN_X_Z, 513, 12000.0f);

Visual studio compiles this line but it shows a ugly red line beneath it and on mouse hover it says "#define OGRE_NEW new (FILE, LINE, FUNCTION) Error: no instance of overloaded 'operator new' matches the argument list" or if I mouse hover over Ogre::TerrainGlobalOptions() it says "Error: expected a type specifier".

I searched on google but couldn't find my answer. I got about a year c++ experience but that was mainly with the WinSock libarys.

Thanks in advance.

© Game Development or respective owner

Related posts about c++

Related posts about 3d-engines