beginning

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
kingdarkeyes
Posts: 2
Joined: Sun Sep 30, 2007 8:30 am

beginning

Post by kingdarkeyes »

I have just begun to use irrlicht 1.3.1. I use dev-C++ compiler 4.9.8.0, and it seems that I cant set up a working application. I first linked to the include, win-32 visual studio library, and it does not work. I switched libraries from win-32, to win-64 and then the program compiled correctly. But, it would only show a console window and quickly disappear. Could anybody help me?
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

We need more information to help you. Post the code you are trying to compile, or describe how did you set up your project more precisely.
I'm not sure, but i think you have to use the lib in the win32-gcc directoty with dev-c++.
kingdarkeyes
Posts: 2
Joined: Sun Sep 30, 2007 8:30 am

Post by kingdarkeyes »

well....first I went to project options and chose library directories, I then chose for that, the win-32 library in the lib folder, and I chose the win-3s library from the bin folder just in case one wouldn't work. I then chose the include directories, and picked the include folder. After which I went to Parameters and chose to add a library or object which was a linker in the win-32 visual studio library, then when I got this error:

[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
________________
I switched out the library win-32 VS library for the win-gcc library and it didnt work still. The application does compiler, but it shows a console window for a short moment. The code I'm using is the code in hello world example on example folder. I just wanted to check to see if I could get it to work....but ti's not for some reason.
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

May be you have forgotten to copy the irrlicht.dll in the directory of your excutable.
If it's still doesn't work, add a system("pause") before your return instruction, and tell us what is written in the console.
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

This Is the same problem I has when I started.

Ok its simple

Goto Project Options

Then Goto parameters, in linkers brows and add irrlicht.a from the lib folder in your irrlicht directory.

Then Goto directories in project options and choose inclue directories and add the include folder from the irrlicht directory.

Next get the irrlicht.dll from the bin/win32gcc and add it to where you want your file to compile to if this is not clear enough of an explanation.


This Is : http://irrlicht.sourceforge.net/tut_devcpp.html
Programming Blog: http://www.uberwolf.com
Post Reply