Page 1 of 1

Linker, strange Error....

Posted: Thu Jul 23, 2009 7:24 pm
by Revan1985
What the hell means this message?

1>CApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *)" (__imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@@Z)

i've linked all the folders, the .lib and the c++ in the exactly mode of the tutorial, but at work this poop works, at home not...

why?

Posted: Thu Jul 23, 2009 8:29 pm
by Hirte
Do you have the right irrlicht.dll in your folder?

Posted: Thu Jul 23, 2009 8:56 pm
by CuteAlien
You are probably linking to the wrong library. Maybe mixing up VS and gcc versions.

Posted: Fri Jul 24, 2009 6:18 am
by Revan1985
is possible that is corrupted after i comment the #define __IRR_COMPILE_WITH_DIRECTX8_ ?

Posted: Fri Jul 24, 2009 7:15 am
by Ion Dune
Nope. You're mix-matching your include and lib files. Or you're not

Code: Select all

#pragma comment ( lib , "irrlicht.lib" ) 
if you're using MSVC.

hi

Posted: Mon Oct 12, 2009 1:56 pm
by kavita_dubey
I have the same problem
suggest me something