Link Error Compiling Hello World

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
Yoshiofthewire
Posts: 5
Joined: Thu Sep 11, 2003 4:09 am

Link Error Compiling Hello World

Post by Yoshiofthewire »

When I compile the Hello World App, using
1) Dev-C++4.9.8.1
2) GCC 3.2
3) All Proper Enviromental Variables (I think)
and the project as OpenGL, Blank, or Convert VC++6 I Get
[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video11EDriverTypeERKNS_4core11dimension2dIiEEjbbPNS_14IEventReceiverE'
Any Ideas would be helpfull.
Thans,
Yoshi of The Wire
indianbeard
Posts: 20
Joined: Mon Sep 08, 2003 6:35 am
Location: India

Post by indianbeard »

Have you added the libs from the parameters tab in the project options?
the libs in devc++ has the extention .a
Yoshiofthewire
Posts: 5
Joined: Thu Sep 11, 2003 4:09 am

Post by Yoshiofthewire »

Yup, I did that.
Oh, and I also am only using the Dev-C++ ones, not the Visual Studio one. And I am compiling in Software mode, not Direct X mode.
indianred

Post by indianred »

and change the pragma statement?
Yoshiofthewire
Posts: 5
Joined: Thu Sep 11, 2003 4:09 am

Post by Yoshiofthewire »

I havn't changes teh pragma statment, but I did move the Dev-C++ DLL into the current working Dir
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I think your problem is that your linker did not find the libIrrlicht.a or found a wrong one. Check if the right lib is used in your project settings.
Yoshiofthewire
Posts: 5
Joined: Thu Sep 11, 2003 4:09 am

Post by Yoshiofthewire »

Well, I played with it, and only made it worse. I managed to get it back to just the problem I was having befor, but I am now sure I have everything Included propery. I even added GL, SDL, and DlShow to the includeds, because i figured out that DevC++ dosem't include at directories recursivly. (Gota ask for that feature) I ended up copying the Include files, the lib files (.a)(.def) into the directories under Dev-C++ and including them from there.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

That's strange, if you have included your libraries like in Step 4 in http://irrlicht.sourceforge.net/tut001b.html, everything should work..
Yoshiofthewire
Posts: 5
Joined: Thu Sep 11, 2003 4:09 am

Post by Yoshiofthewire »

Ok, that fixed it, I blame it all on my dependence of VC++6.
Post Reply