"Build Error" and "No new line in the end of

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

"Build Error" and "No new line in the end of

Post by Guest »

Can anyone explain me what my Dev-C++ compiler wants to tell me???
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

sry i misstyped something...

i mean when i compile with dev-cpp i get the error "Build Error" and a warning "no new line at the end of file"
ThommyE
Posts: 48
Joined: Sun Sep 18, 2005 3:02 pm
Location: germany/badnerlaendle

Post by ThommyE »

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?
athlon2400xp+,geforce4200ti, 0.2Tb hd+64mb extern, 512mb ram, linux FC5 2.6.16-1.2096, 100%gates-free system
Guest

Post by Guest »

its not devc++ fault its gcc
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

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?
Leiden
Posts: 5
Joined: Fri Oct 07, 2005 2:13 pm
Location: New Zealand

Post by Leiden »

IIRR the newline is not an error but a warning message. It must be something else in the code thats amis.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

Leiden wrote:IIRR the newline is not an error but a warning message. It must be something else in the code thats amis.
As i said, ive also the ERROR: "Build Error". Has something to do with the compiler, not the code, imo.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

no idea what build error is? :(
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

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;
}
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post by luckymutt »

The build error should give you more information.
Check the "Compile Log" tab at the bottom of the IDE and it should describe what it was trying to do when it hi tthe build error.
Guest

Post by Guest »

Compare it with the tutorials. The compiler will give a line number that is at fault. What is it?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

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
omaremad
Competition winner
Posts: 1027
Joined: Fri Jul 15, 2005 11:30 pm
Location: Cairo,Egypt

Post by omaremad »

give us the whole build log or a screen shot please

Did u remember to link irrlicht.a
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

Ok i read the log and i think i misslinked the irrlicht.a file

And yes everthings works.

Thanks to this nice community :)
Post Reply