irrlicht-1.1 linker error under dev-c++ 4.9

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
Cold_Dog
Posts: 15
Joined: Fri Aug 25, 2006 6:54 am
Location: Dominican Republic

irrlicht-1.1 linker error under dev-c++ 4.9

Post by Cold_Dog »

I know that other dude had the same problem...but I did everything that says in the tutorial and I tried to resolve the problem the same way that kornerr said in his reply.

I put the include directories....the lib's, I installed irrlicht in c:, I linked to libirrlicht.a I've put all the directories. I copied irrlicht.dll to the system32 folder.....and still doesnt work....I get this error:

[Linker error]undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'
collect2: ld returned 1 exit status

id returned 1 exit status

btw...The tutorial about setting up dev-cpp with irrlicht is outdated...

first...is for a different version of dev-cpp, actual version is 4.9 or 5 I think...I have 4.9.9.2...

second...irrlicht-1.1 has other directories with different names....which should I add? irrlicht.lib is in the directory \lib\Win32-visualstudio and libirrlicht.a is in \lib\Win32-gcc...should I add em both?
Please help! I'm about to tear my hair!

Edited:

Thanks for the suggestion...but I solved the problem this afternoon...the problem was that I was writing the code as a File->New->Source File... so the option to set the parameters found in the Project->Project Options was disabled...

But I created a File->New->Project and everything worked out just perfectly...I just had to go to the Project Options and set the parameters to look for the libirrlicht.a :)

So thanks, I just posted the way I solved the problem because I though it might be helpful to others
Last edited by Cold_Dog on Sat Aug 26, 2006 3:55 am, edited 3 times in total.
I've come in peace, but you'll go in pieces!
Cold_Dog
Posts: 15
Joined: Fri Aug 25, 2006 6:54 am
Location: Dominican Republic

I know that you have seen this post a million times

Post by Cold_Dog »

Hey...I have readed all the post related to this same problem...I'm linking correctly to irrlicht.lib, and libirrlicht.a and irrlicht.dll, Im setting the includes directories, libraries, bins and everything just right....but the compiler keeps giving me those errors. I added the patch to my autoexec.bat and copied the irrlicht.dll anywhere it seemed to be needed...in the dev-cpp\bin in the directory where my program is...in system32...

I dont know what to do...I want to kick this stupid pc...please help
I've come in peace, but you'll go in pieces!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Irrlicht provides several example apps, all with project files for several IDEs. Just take one of these projects and copy their settings over to yours.
Post Reply