New Install and Hello World tutorial compile error

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
webnoob
Posts: 17
Joined: Mon Aug 20, 2007 9:28 pm

New Install and Hello World tutorial compile error

Post by webnoob »

Hiya, I have followed the details in the tutorial for setting Irrlicht up in Dev-CPP and get an error when trying to compile, here is the compile log

Code: Select all

Compiler: Default compiler
Building Makefile: "D:\Programming\Dev-Cpp\IrrDemo\Makefile.win"
Executing  make...
make.exe -f "D:\Programming\Dev-Cpp\IrrDemo\Makefile.win" all
g++.exe irrdemo.o  -o "IrrDemo.exe" -L"D:/Programming/Dev-Cpp/lib" ../../Irrlicht/irrlicht-1.3.1/lib/Win32-gcc/libIrrlicht.a 

D:\Programming\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe:../../Irrlicht/irrlicht-1.3.1/lib/Win32-gcc/libIrrlicht.a: file format not recognized; treating as linker script
D:\Programming\Dev-Cpp\Bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe:../../Irrlicht/irrlicht-1.3.1/lib/Win32-gcc/libIrrlicht.a:1: parse error

make.exe: *** [IrrDemo.exe] Error 1

Execution terminated
With this code:

Code: Select all

// HelloUniverse.cpp
// Include the Irrlicht header
#include "irrlicht.h"

// Irrlicht Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;


int main()
{
IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
0);

irrDevice->setWindowCaption(L"Dev-C++ and the Irrlicht Engine!");

IVideoDriver* irrDriver = irrDevice->getVideoDriver();
ISceneManager* irrSceneMgr = irrDevice->getSceneManager();
IGUIEnvironment* irrGUIEnv = irrDevice->getGUIEnvironment();

irrGUIEnv->addStaticText( L"Hello World! This is the Irrlicht software engine!",
rect<int>(10,10,200,30), true, true, 0, -1);

while(irrDevice->run())
{
irrDriver->beginScene(true, true, SColor(0,192,192,192));

irrSceneMgr->drawAll();
irrGUIEnv->drawAll();

irrDriver->endScene();
}

irrDevice->drop();

return(0);
}
I am using the latest release. Any help would be greatly appreciated
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess you killed your libIrrlicht.a as it is not recognized anymore. Try to recompile or reinstall the library.
webnoob
Posts: 17
Joined: Mon Aug 20, 2007 9:28 pm

Post by webnoob »

I am sorry, I am very new to this. I have downloaded the files straight from the web. DO I need to do more?
webnoob
Posts: 17
Joined: Mon Aug 20, 2007 9:28 pm

Post by webnoob »

Ok so now I am very happy, not at one point through this did I think that the download could be corrupt :) Thanks for the help
Post Reply