"Build Error" and "No new line in the end of
"Build Error" and "No new line in the end of
Can anyone explain me what my Dev-C++ compiler wants to tell me???
if he's telling you the file he's complaining about, just open it with wordpad or whatever and add an empty line at the end of the file... (go to the very bottom after the very last written letter/symbol and press enter;))
bdw. compilers often tell you what they want=) he just wanted an empty line at the end of the file.
although i couldn't remember a compiler seriosly aborting his job due to a missing line.
any other errors?
... or anyone knows if dev-cpp relly hold on something silly like this?
bdw. compilers often tell you what they want=) he just wanted an empty line at the end of the file.
although i couldn't remember a compiler seriosly aborting his job due to a missing line.
any other errors?
... or anyone knows if dev-cpp relly hold on something silly like this?
athlon2400xp+,geforce4200ti, 0.2Tb hd+64mb extern, 512mb ram, linux FC5 2.6.16-1.2096, 100%gates-free system
i dont think he broke up cause of the missing line i think it was the "build error" and ive no idea what it means...
Btw: im englischen heisst es "it" und nicht "he". typischer deutscher fehler (just a english-help for the german guy)
Edit: could it be that i need a .devpack-file for irrlicht? if yes, where can i get it?
Btw: im englischen heisst es "it" und nicht "he". typischer deutscher fehler (just a english-help for the german guy)
Edit: could it be that i need a .devpack-file for irrlicht? if yes, where can i get it?
heres the code
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;
}
Halan we realize its a build error, but lack of a newline generates a warning, not a build error, so the build error is something else
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.
Crucible of Stars
Crucible of Stars