Problem running an exe made in debug
Posted: Tue Feb 15, 2005 9:31 pm
Nearly done with the awsome OGRE tutorials on Wiki
Above is my code, and it's apparantly the last line that makes the compiler unhappy. Below is the only error that's thrown when I try to compile:
I've has through both the Wiki tutorial and the one on the OGRE site - as there are inconsistencies between the two, but nothing is making itself apparant. Please help
Code: Select all
Entity *pWaterEntity;
Plane nWaterPlane;
//create a water plane SceneNode
nWaterPlane.normal = Vector3::UNIT_Y;
nWaterPlane.d = -1.5;
MeshManager::getSingleton().createPlane(
"WaterPlane",
nWaterPlane,
8000, 8000,
20, 20,
true, 1,
10, 10,
Vector3::UNIT_Z);Code: Select all
Compiling...
TutorialApplication.cpp
C:\OgreTutorials\OgreTutorials\Tutorial6\TutorialApplication.cpp(73) : error C2664: 'createPlane' : cannot convert parameter 2 from 'class Ogre::Plane' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char>
> &'
Reason: cannot convert from 'class Ogre::Plane' to 'const class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
Error executing cl.exe.
TutorialApplication.obj - 1 error(s), 0 warning(s)