devc++ setup

A forum to store posts deemed exceptionally wise and useful
Post Reply
stuc

devc++ setup

Post 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.
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post by StuCollier »

Problem sorted .....

It appears that the tutorial is a bit out of date....
StuC
Freeware games
www.ovine.net
kakTuZ
Posts: 12
Joined: Sun Mar 14, 2004 7:28 pm
Location: Hannover (Germany)

Post by kakTuZ »

I think you need to include the irllicht.a libary file in the project options in dev-cpp
StuCollier
Posts: 52
Joined: Tue Mar 30, 2004 12:16 pm

Post 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);     
StuC
Freeware games
www.ovine.net
Post Reply