Getting 102 errors relating to IUnknown

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
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Getting 102 errors relating to IUnknown

Post by Endar »

I'm trying to inherit from the CCamera class and apparently I need the Timer functions in the os namespace. So, I add "os.h" and that works except I need the actual function, so I add "os.cpp" and I immediatly get 102 errors, all relating to IUnknown.

The first one says "'IUnknown' : type name first seen using 'class' now seen using 'struct'"

and then generally, there are slightly less than 102 errors saying "ambiguous symbol", all relating to something inside the IUnknown class.

Can anyone help?
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
ManakelStilNotLogged

Post by ManakelStilNotLogged »

It happens cause IUNKNOWN is an exisiting type in OS Includes.

So either we change the name of IUNKNOWN in irrlicht or everytime you need to use external libs (raknet,cal3D....) you must not use "using namespaces XXX
you must set explicely irr::core::aabox ,irr::scene::...
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

You only need to do this if you include windows.h btw.
Post Reply