[Fixed]IUnknown ambiguous symbol
Posted: Fri Jul 22, 2005 12:09 am
Plz rename IUnknown to IrrUnknown or somethink ....
I was geting error about this all the time and was forced to use every time irr::core:: ...etc because trying to use namespace get me error
I was also using the include file localy "irrlicht/irrlicht.h"...
I tried today to use <irrlicht.h> and i lose all day trying to fix this ambiguity ... with no result (i fixed in some files but in some is still not working ...).
I get error's like this:
( i think windows.h or winsock2.h is include Unknwn.h what have IUnknown ... same name ... )
And i give up and changed the name of the class to IrrUnknown... using SCR
http://www.soft-central.net/scr.php
and now is working fine ... no more ambiguity
I was geting error about this all the time and was forced to use every time irr::core:: ...etc because trying to use namespace get me error
I was also using the include file localy "irrlicht/irrlicht.h"...
I tried today to use <irrlicht.h> and i lose all day trying to fix this ambiguity ... with no result (i fixed in some files but in some is still not working ...).
I get error's like this:
Code: Select all
p:\Microsoft Visual Studio\PlatformSDK\Include\Unknwn.h(48) : warning C4099: 'irr::IUnknown' : type name first seen using 'class' now seen using 'struct'
w:\Encounters3D\Irrlitch\irrlicht-0.11.0\source\Irrlicht\include\IUnknown.h(42) : see declaration of 'irr::IUnknown'
p:\Microsoft Visual Studio\PlatformSDK\Include\Unknwn.h(97) : error C2872: 'IUnknown' : ambiguous symbol
could be 'p:\Microsoft Visual Studio\PlatformSDK\Include\Unknwn.h(48) : irr::IUnknown IUnknown'
or 'w:\GALACTICDREAM\Irrlitch\irrlicht-0.11.0\source\Irrlicht\include\IUnknown.h(42) : irr::IUnknown'
p:\Microsoft Visual Studio\PlatformSDK\Include\Unknwn.h(110) : fatal error C1903: unable to recover from previous error(s); stopping compilation
listau.cpp
And i give up and changed the name of the class to IrrUnknown... using SCR
http://www.soft-central.net/scr.php
and now is working fine ... no more ambiguity