------ Build started: Project: samurai, Configuration: Debug Win32 ------
Compiling...
main.cpp
.\main.cpp(84) : error C2065: 'mesh' : undeclared identifier
.\main.cpp(90) : error C2065: 'node' : undeclared identifier
.\main.cpp(90) : error C2227: left of '->getMesh' must point to class/struct/union/generic type
type is ''unknown-type''
.\main.cpp(91) : error C2227: left of '->setPosition' must point to class/struct/union/generic type
type is ''unknown-type''
.\main.cpp(93) : error C2227: left of '->setMaterialTexture' must point to class/struct/union/generic type
type is ''unknown-type''
.\main.cpp(110) : error C2065: 'terrain' : undeclared identifier
Build log was saved at "file://c:\Documents and Settings\Tim\My Documents\samurai\samurai\samurai\Debug\BuildLog.htm"
samurai - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
.\main.cpp(46) : error C2065: 'mesh' : undeclared identifier
.\main.cpp(58) : error C2227: left of '->getMesh' must point to class/struct/union/generic type
type is ''unknown-type''
i don't mean to be rude, but you really must know what an identifier (variable) is, and how to declare one before you can decipher the error message "\main.cpp(46) : error C2065: 'mesh' : undeclared identifier"
.\main.cpp(50) : error C2664: 'irr::scene::ISceneManager::addAnimatedMeshSceneNode' : cannot convert parameter 1 from 'int' to 'irr::scene::IAnimatedMesh *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
.\main.cpp(59) : error C2440: '=' : cannot convert from 'irr::scene::IAnimatedMesh *' to 'int'
There is no context in which this conversion is possible
.\main.cpp(61) : error C2227: left of '->getMesh' must point to class/struct/union/generic type
type is 'int'
.\main.cpp(50) : error C2664: 'irr::scene::ISceneManager::addAnimatedMeshSceneNode' : cannot convert parameter 1 from 'int' to 'irr::scene::IAnimatedMesh *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
.\main.cpp(59) : error C2440: '=' : cannot convert from 'irr::scene::IAnimatedMesh *' to 'int'
There is no context in which this conversion is possible
.\main.cpp(61) : error C2227: left of '->getMesh' must point to class/struct/union/generic type
type is 'int'
That would be because the variable has to be declared as the correct type. addAnimatedMeshSceneNode returns an IAnimatedMesh, not an int. You'll need to declare the variable 'mesh' as an IAnimatedMesh, much like this: