"Build Error" and "No new line in the end of
Posted: Sat Oct 08, 2005 1:51 pm
Can anyone explain me what my Dev-C++ compiler wants to tell me???
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
As i said, ive also the ERROR: "Build Error". Has something to do with the compiler, not the code, imo.Leiden wrote:IIRR the newline is not an error but a warning message. It must be something else in the code thats amis.
Code: Select all
//Including the Irrlicht Engine (http://irrlicht.sourceforge.net/) and other stuff
#include <irrlicht.h>
#include <windows.h>
#include <stdio.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib")
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
{
//Create Device
IrrlichtDevice *device = createDevice(video::EDT_SOFTWARE,
core::dimension2d<s32>(512, 384), 32, false, false, false, 0);
device->setWindowCaption(L"Age of War - MenĂ¼");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
//MenĂ¼ Title
guienv->addStaticText(L"Age of War",
rect<int>(10,10,200,22), true);
smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0)); //Intialize Camera
IAnimatedMesh* zwergmesh = smgr->getMesh("./media/menu/models/dwarf.ms3D"); //get mesh
IAnimatedMeshSceneNode* zwerg = smgr->addAnimatedMeshSceneNode( zwergmesh ); //get scene node
if (zwerg)
{
zwerg->setMaterialFlag(EMF_LIGHTING, false); //disable Lightning
zwerg->setFrameLoop(0, 60); //Limitate Frames to 60
zwerg->setMaterialTexture( 0, driver->getTexture("./media/menu/textures/dwarf.bmp") );//Set Texture
}
//Run everything :)
while(device->run())
{
driver->beginScene(true, true, SColor(0,200,200,200));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
//End of All
device->drop();
return 0;
}