unresolved external symbol for SMaterial

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
genzm
Posts: 6
Joined: Sun Mar 24, 2013 4:42 pm

unresolved external symbol for SMaterial

Post by genzm »

Hy, I've been using Irrlicht for 2 days now and I'm really happy with it :P Great documentation.
Now I was working my way throught these tutorial:
http://irrlicht.sourceforge.net/docu/example003.html

They are a great way of touching all functionalities of Irrlicht. Now I this third tutorial I stumbled upon a little problem. There error I'm getting:

Code: Select all

Error   1   error LNK2001: unresolved external symbol "class irr::video::SMaterial irr::video::IdentityMaterial" (?IdentityMaterial@video@irr@@3VSMaterial@12@A)
Now I'm new to Irrlicht, but not to C++. So I do know that unresolved external symbol means that something has been declared but not defined. So the compiler doesn't know what to do with it.
The problem is that this is code of Irrlicht itself. Why wouldn't "IdentityMaterial" be implemented? I'm a little bit confused by this error, but I'm pretty sure I'm just doing something really noobie :P
So please point it out, so I can move on to the real work XD

Anyway thanks for the help,

Greatings
Genzm
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: unresolved external symbol for SMaterial

Post by CuteAlien »

Looks like you did use static build of Irrlicht. Either work with the dll or add the define _IRR_STATIC_LIB_ to your project file.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
genzm
Posts: 6
Joined: Sun Mar 24, 2013 4:42 pm

Re: unresolved external symbol for SMaterial

Post by genzm »

You're my hero :P
How stupid. I wanted to use static library, but couldn't compile it. Started using the dll instead, but forgot to remove the #define _IRR_STATIC_LIB_

Thanks for the tip.
Post Reply