I've constructed a simple code to make sure that I could get Irrlicht to display a basic window with the title "Irrlicht engine".
Code: Select all
//This is the sourcecode for My project
//Programmed by Kordell Washington
//Started on Aug 10, 2010
//---------------------------------------
//Includes (Don't require a semi-colon at the end)
#include <irrlicht.h>
#include <iostream>
//Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace gui;
using namespace io;
using namespace video;
//Main loop
int main()
{
//Create the device to handle the renderer, resolution, shadows, vsync, etc.
Irrlichtdevice *device =
createdevice( video::EDT_OPENGL, dimension2d<s32>(1024, 768), 32,
true, true, false, 0);
if (!device)
return 1;
//Change the window title to the name of the program
device->setwindowcaption(L"Earth Angels - Beta 0.1");
IVideoDriver* device = device->getvideodriver();
ISceneManager* smgr = device->getscenemanager();
IGUIEnviroment* guienv = device->getguienviroment();
while(device->run())
{}
device->drop();
return 0;
}
Code: Select all
||=== Irrlicht Example 02 Quake Map, Linux ===|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp||In function ‘int main()’:|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp|22|error: ‘Irrlichtdevice’ was not declared in this scope|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp|22|error: ‘device’ was not declared in this scope|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp|24|error: ‘createdevice’ was not declared in this scope|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp|34|error: ‘IGUIEnviroment’ was not declared in this scope|
/home/kordell/Irrlicht/examples/02.Quake3Map/main.cpp|34|error: ‘guienv’ was not declared in this scope|
||=== Build finished: 5 errors, 0 warnings ===|
I'm using Ubuntu 9.10 with Code::Blocks 8.02