Link to home
Start Free TrialLog in
Avatar of Christopher Schene
Christopher ScheneFlag for United States of America

asked on

Why am I seeing with20113: C2872: 'IDocument' : ambiguous symbol

Hello,

I am seeing the error below and my suspicion is that it is happening because there is no name space specified for my own IDocument' definition.

Any idea how to fix this? Is there a way to tell which namespace a particular line is actually in? There are so many levels of includes that the name space information is obscured.

 1>c:\companybuild\companyfilter\release\_intermediate\automation\ad20.tlh(124): error C2872: 'IDocument' : ambiguous symbol
                 could be 'c:\companybuild\companyfilter\release\_intermediate\automation\ad20.tlh(98) : IDocument'
                 or       'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include\atlhandler.h(161) : ATL::IDocument'
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

You are using (including) two header files which both contain the same symbol (IDocument) defined.

You have to decide which one is correct and remove the other.
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Christopher Schene

ASKER

Zoppo: your solution worked. thanks!