Linker Error

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
grovestand
Posts: 3
Joined: Sun Apr 01, 2007 10:49 pm

Linker Error

Post by grovestand »

Hey, i just got irrlicht and i am new to 3d programming altogether.
i copied all of the libraries to my compiler's include folder (using the compiler dev-++ by bloodshed).

i tried compiling a test code, and i am recieving this error:

[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'

ld returned 1 exit status

now i usually only recieve the exit status error when i havnt exited a previously compiled version of the program......fix plz?!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Use the correct dll (the one from the gcc directory).
grovestand
Posts: 3
Joined: Sun Apr 01, 2007 10:49 pm

Post by grovestand »

can you please clarify?
i know where the irrlicht.dll file is
but i dont know where to put it or what to do with it =P
grovestand
Posts: 3
Joined: Sun Apr 01, 2007 10:49 pm

Post by grovestand »

can i please get some help? ive been waiting a while now =P
i even installed the devpak for irrlicht, and im still getting this error. the dll is in my win32 folder, too....
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to put the dll to where your exe is. That's a pretty basic Windows requirement (you could also put it to your system path, but that often interferes with newer versions not being copied there).
wiznitch
Posts: 15
Joined: Mon Apr 02, 2007 11:11 pm

Post by wiznitch »

im coming across the same problem, and im pretty sure the dll file is inside my exe folder, at least its inside my IDE folder if thats the same place, if not, how else can i fix this problem also
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

What is an IDE folder :shock: Starting the app from within another one is more difficult because you don't know where the IDE changes directories to before starting your app. You usually set working directory within the IDE. But otherwise the exe should be in the same folder/directory (from OS view) as the dll. And it should be the correct one :idea:
wiznitch
Posts: 15
Joined: Mon Apr 02, 2007 11:11 pm

Post by wiznitch »

basically what i have is i got devc++, and its right on the c drive, in its folder is the design environment application(i guess thats the dev executable file), which is where i put the dll file, but its still giving me the same error as grove, and im still not sure what goes on
Post Reply