Thanks for the help. Im not sure about the <.h> being required, I believe you it's just that I remember while trying to compile some code from the book Sams Teach Yourself C++ in 24 hours(source written for VC++6) and the code wouldnt compile, seems like the solution was a combination of dropping <.h> from header files and also using, using namespace std;. I would love it if you would say, "I told you so" pointing out a solution and help me compile the code

Below is the source im trying to compile and following that are the errors generated when I try to build the solution.
Code: Select all
#include <irrlicht.h>
using namepsace irr;
using namepsace core;
using namepsace scene;
using namepsace video;
using namepsace io;
using namepsace gui;
int main()
{
IrrlichtDevice *device =
createDevice(EDT_SOFTWARE, dimension2d<s32>(512, 384), 16,
false, false, false, 0);
device->setWindowCaption(L"Hey BItches! - Irrlicht Engine Demo");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addStaticText(L"Hello World! This is the Irrlicht Software engine!",
rect<int>(10,10,200,22), true);
IAnimatedMesh* mesh = smgr->getMesh("../media/sydney.md2");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
node->setFrameLoop(0, 310);
node->setMaterialTexture( 0, driver->getTexture("../media/sydney.bmp") );
}
smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
1>------ Build started: Project: Tutorial_1, Configuration: Release Win32 ------
1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
1>Hello.cpp
1>.\Hello.cpp(3) : error C2146: syntax error : missing ';' before identifier 'irr'
1>.\Hello.cpp(3) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(3) : error C2365: 'irr' : redefinition; previous definition was 'namespace'
1>.\Hello.cpp(4) : error C2146: syntax error : missing ';' before identifier 'core'
1>.\Hello.cpp(4) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(5) : error C2146: syntax error : missing ';' before identifier 'scene'
1>.\Hello.cpp(5) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(6) : error C2146: syntax error : missing ';' before identifier 'video'
1>.\Hello.cpp(6) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(7) : error C2146: syntax error : missing ';' before identifier 'io'
1>.\Hello.cpp(7) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(7) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(8) : error C2146: syntax error : missing ';' before identifier 'gui'
1>.\Hello.cpp(8) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration
1>.\Hello.cpp(8) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Hello.cpp(12) : error C2065: 'IrrlichtDevice' : undeclared identifier
1>.\Hello.cpp(12) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(13) : error C2065: 'EDT_SOFTWARE' : undeclared identifier
1>.\Hello.cpp(13) : error C2065: 'dimension2d' : undeclared identifier
1>.\Hello.cpp(13) : error C2065: 's32' : undeclared identifier
1>.\Hello.cpp(13) : error C3861: 'createDevice': identifier not found
1>.\Hello.cpp(16) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(16) : error C2227: left of '->setWindowCaption' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(18) : error C2065: 'IVideoDriver' : undeclared identifier
1>.\Hello.cpp(18) : error C2065: 'driver' : undeclared identifier
1>.\Hello.cpp(18) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(18) : error C2227: left of '->getVideoDriver' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(19) : error C2065: 'ISceneManager' : undeclared identifier
1>.\Hello.cpp(19) : error C2065: 'smgr' : undeclared identifier
1>.\Hello.cpp(19) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(19) : error C2227: left of '->getSceneManager' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(20) : error C2065: 'IGUIEnvironment' : undeclared identifier
1>.\Hello.cpp(20) : error C2065: 'guienv' : undeclared identifier
1>.\Hello.cpp(20) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(20) : error C2227: left of '->getGUIEnvironment' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(22) : error C2065: 'guienv' : undeclared identifier
1>.\Hello.cpp(22) : error C2227: left of '->addStaticText' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(23) : error C2065: 'rect' : undeclared identifier
1>.\Hello.cpp(23) : error C2062: type 'int' unexpected
1>.\Hello.cpp(25) : error C2065: 'IAnimatedMesh' : undeclared identifier
1>.\Hello.cpp(25) : error C2065: 'mesh' : undeclared identifier
1>.\Hello.cpp(25) : error C2065: 'smgr' : undeclared identifier
1>.\Hello.cpp(25) : error C2227: left of '->getMesh' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(26) : error C2065: 'IAnimatedMeshSceneNode' : undeclared identifier
1>.\Hello.cpp(26) : error C2065: 'node' : undeclared identifier
1>.\Hello.cpp(26) : error C2065: 'smgr' : undeclared identifier
1>.\Hello.cpp(26) : error C2227: left of '->addAnimatedMeshSceneNode' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(26) : error C2065: 'mesh' : undeclared identifier
1>.\Hello.cpp(28) : error C2065: 'node' : undeclared identifier
1>.\Hello.cpp(30) : error C2065: 'node' : undeclared identifier
1>.\Hello.cpp(30) : error C2227: left of '->setMaterialFlag' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(30) : error C2065: 'EMF_LIGHTING' : undeclared identifier
1>.\Hello.cpp(31) : error C2065: 'node' : undeclared identifier
1>.\Hello.cpp(31) : error C2227: left of '->setFrameLoop' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(32) : error C2065: 'node' : undeclared identifier
1>.\Hello.cpp(32) : error C2227: left of '->setMaterialTexture' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(32) : error C2065: 'driver' : undeclared identifier
1>.\Hello.cpp(32) : error C2227: left of '->getTexture' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(35) : error C2065: 'smgr' : undeclared identifier
1>.\Hello.cpp(35) : error C2227: left of '->addCameraSceneNode' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(35) : error C3861: 'vector3df': identifier not found
1>.\Hello.cpp(35) : error C3861: 'vector3df': identifier not found
1>.\Hello.cpp(37) : error C2065: 'device' : undeclared identifier
1>.\Hello.cpp(37) : error C2227: left of '->run' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>.\Hello.cpp(37) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Build log was saved at "file://c:\Users\Eric\Documents\Visual Studio 2008\Projects\Tutorial_1\Release\BuildLog.htm"
1>Tutorial_1 - 69 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========