Link problem

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
Roman B.
Posts: 9
Joined: Wed Mar 10, 2010 8:04 am
Location: Russia
Contact:

Link problem

Post by Roman B. »

Code: Select all

Warning	1	warning C4394: 'irr::core::IdentityMatrix' : per-appdomain symbol should not be marked with __declspec(dllimport)	d:\vs\vc\include\matrix4.h	2105	

Warning	2	warning C4394: 'irr::video::IdentityMaterial' : per-appdomain symbol should not be marked with __declspec(dllimport)	d:\vs\vc\include\SMaterial.h	597	


Error	3	error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::video::SMaterial irr::video::IdentityMaterial" (__imp_?IdentityMaterial@video@irr@@$$Q3VSMaterial@12@A)	database.obj	


Error	4	fatal error LNK1120: 1 unresolved externals	C:\Users\Роман\Documents\Visual Studio 2005\Projects\Tour3DforWindows\Debug\TourIndexClient.exe	

I have such link error, when i include irrlicht.h file, how resolve this error?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Looks like you didn't define the dllimport/dllexport properly. When compiling the Irrlicht dll you need to define the export symbol, otherwise define the import symbol. Exact code should be found in the provided projects.
Post Reply