<irrlich.h>
<irrlich.h>
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 ?
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 ?
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
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
REPLY:
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.
REPLY:
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!
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!
Re: REPLY:
hi again its dont work boss i cant run3ddev 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!
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
Wow. Major library problems there
Have you tried going through this:
http://irrlicht.sourceforge.net/tut_devcpp.html
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
#irrlicht on irc.freenode.net
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 ?
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 ?
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact: