Linker Error: LNK2001 unresolved external symbol

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
maplelm
Posts: 2
Joined: Wed Feb 18, 2015 2:33 am

Linker Error: LNK2001 unresolved external symbol

Post by maplelm »

so I am very no to this engine and prgramming games in general and i have been trying to set up the engine to code with for weeks know and no matter what i try i all ways get linker errors to do with not finding the Irrlicht.dll or that there is some other unresolved external symbol i have set up the linker to link with the Irrlicht.dll and i have set up all the included and all that i have tryed putting in

Code: Select all

#pragma comment(lib, "Irrlicht.lib")
and

Code: Select all

#pragma comment(lib, "Irrklang.lib")

nothing is working i am starting to want to give up I think that if i can get the engine to work i would be perfect for me what that is if i get it setup ever any help?

oh and i am just trying to run a hello world project nothing fancy

the exact error is

fatal error LNK1120: 3 unresolved externals

thank you
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Linker Error: LNK2001 unresolved external symbol

Post by mongoose7 »

You have to set the paths to the libraries. If you are using VS, the only libraries it can find without help are the MS ones. Also, "fatal error LNK1120: 3 unresolved externals" is usually not enough - you should show the next three lines, that is, the symbols that can't be resolved. If you want help setting the linker paths, try googling "Linker Error: LNK2001 unresolved external symbol".
wangmopp
Posts: 3
Joined: Thu Apr 02, 2015 10:28 am

Re: Linker Error: LNK2001 unresolved external symbol

Post by wangmopp »

you can try to copy irrlicht.dll to you debug/release directory.
Post Reply