<irrlich.h>

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
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

<irrlich.h>

Post by hepastios »

i have a devc++ code program
i cant run irrlich with devc++ its give error irrlich.h not found
what i do please help me and i cant find run irrlich in devc++ help pls ?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

it's Irrlicht.h, you gone spelt it rong. ;)
If it's not that, you need to set up your include path in your compiler. Go to the "Project->Project Options" menu and compare each setting to a working example
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

now i m retry and i get error again : uncrecognized command line option "-fdollar-ini-identifiers"
build error untitled1.o error 1

first i m open devC++ and create new project after click project options and i see some tabs i m click directories and include directories after click add and add my irrlich include folder click add and ok

reopen project options and click parameters tab now i m click add library or object and select libIrrlicht.a , libipeg.a , libz a then click ok

and i m copy this code to my devc++

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

and click compile and run (f9)

and i m get this error

now i m retry and i get error again : uncrecognized command line option "-fdollar-ini-identifiers"
build error untitled1.o error 1


help please :( :(
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

REPLY:

Post by 3ddev »

Oviously there is a command line option( -fdollar-ini-identifiers ) in your project settings that is not used by Irrlicht. Just delete this and your app should run fine. This is not an Irrlicht problem at all.
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

( -fdollar-ini-identifiers ) how to i delete this ? where this folder i cant find ?
CodeDog
Posts: 106
Joined: Sat Oct 07, 2006 8:00 pm
Location: CA. USA
Contact:

Post by CodeDog »

hepastios wrote:( -fdollar-ini-identifiers ) how to i delete this ? where this folder i cant find ?
It's not a file, its a command line option for your compiler.
Check your projects settings.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use the Dev-Cpp beta version (4.9.9.2) as all previous ones do not work.
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

i m already using dev c++ 4.9.9.2 but its dont work ?
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

REPLY:

Post by 3ddev »

Ok. I assume you are making a Dev-C++ Irrlicht project. Click Project->Project Options and a window opens up. Click the Parameters tab and in the window delete the flag -fdollar-ini-identifiers Click OK at the bottom of the window and recompile your project.

Not to be unkind, but maybe it would be smart to learn how to use your ide BEFORE you begin programming in Irrlicht. Read the Dev-C++ help files which are very well documented. I think a c++ refresher might not be so bad an idea too. You have to know all about the simple compiler flags, libs, and includes to really begin programming seriously! :wink:
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Re: REPLY:

Post by hepastios »

3ddev wrote:Ok. I assume you are making a Dev-C++ Irrlicht project. Click Project->Project Options and a window opens up. Click the Parameters tab and in the window delete the flag -fdollar-ini-identifiers Click OK at the bottom of the window and recompile your project.

Not to be unkind, but maybe it would be smart to learn how to use your ide BEFORE you begin programming in Irrlicht. Read the Dev-C++ help files which are very well documented. I think a c++ refresher might not be so bad an idea too. You have to know all about the simple compiler flags, libs, and includes to really begin programming seriously! :wink:
hi again its dont work boss i cant run

Click Project->Project Options and a window opens up. Click the Parameters tab and in the window delete the flag -fdollar-ini-identifiers Click OK at the bottom of the window and recompile your project.

i cant find this please help
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

i think i m done it but i got new errors i put the picture please look it


Image
sgt_pinky
Posts: 149
Joined: Sat Oct 14, 2006 11:20 am
Location: Melbourne, Australia

Post by sgt_pinky »

Wow. Major library problems there ;-)

Have you tried going through this:

http://irrlicht.sourceforge.net/tut_devcpp.html
Intellectuals solve problems - geniuses prevent them. -- Einstein
#irrlicht on irc.freenode.net
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

yes i m do this toturial but i cant do here

Step 5 -- Using the Irrlicht DLL at Runtime
In order to run your applications from within Dev-C++, for debugging, or just for the sake of not having to go outside the IDE to run them, the "irrlicht.dll" supplied with Irrlicht must be in your PATH. With Windows, there are two simple ways to do this:

Add the "irrlicht-0.3\bin" directory from Step 1 to your PATH.
Copy "irrlicht.dll" to your windows\system32 directory, which is in the PATH by default.
I'm not sure that any one method is better than the other -- I use the first one in my programs, but both work.


how to i find step 1 ?
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

Post by omar shaaban »

:x use code::blocks it is better and make sure u download the nightly build
hepastios
Posts: 13
Joined: Sun Oct 15, 2006 10:04 pm

Post by hepastios »

i want to make this in dev c++ who help me ?
Post Reply