Page 1 of 1

devc++ setup

Posted: Tue Mar 30, 2004 12:25 pm
by stuc
Im completly new to devc++.

I followed the tutorial on how to setup devc++, but it doesnt seem to work for me still.

Code: Select all

#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("Dev-C++ and the Irrlicht Engine!");

   irrDevice->drop();

    return(0);
}

COMPLIE and i get error :

no matching function for call to `irr::IrrlichtDevice::
I have the copied the DEVCPP Irrlicht.dll into system32
I have put the include path in the project pointing to \includes

Can someone point me in the right direction to what I have not done.

Posted: Tue Mar 30, 2004 12:33 pm
by StuCollier
Problem sorted .....

It appears that the tutorial is a bit out of date....

Posted: Tue Mar 30, 2004 7:44 pm
by kakTuZ
I think you need to include the irllicht.a libary file in the project options in dev-cpp

Posted: Wed Mar 31, 2004 7:38 am
by StuCollier
Yea - for anyone else that has problems setting up :-

As I jumped in and didnt read the "Hello world" tutorial - I mistakenly removed the L from infront of the string. YOU MUST KEEP IT IN :)

Also the call to the call to addStaticText is missing a parameter at the end - it needs to be thus :-

Code: Select all

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