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
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);
}