早教吧 育儿知识 作业答案 考试题库 百科 知识分享

英语翻译求解!The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is am

题目详情
英语翻译求解!
The "ambiguous symbol" error occurs when a smart pointer interface definition such as IXMLDOMDocumentPtr is defined in both the MSXML2 namespace (through #import) and the global namespace (through Msxml.h), so that the symbol is ambiguous. When the compiler resolves the interfaces, the compiler looks first in Msxml.h, which has different signatures than those that #import generates.
▼优质解答
答案和解析
当一个智能指针接口定义时会发生“模棱两可标志”错误,例如IXMLDOMDocumentPtr同时在MSXML2命名空间(通过#进口)和全局命名空间(通过Msxml.h )被规定/定义,此标志为模棱两可的.当编译器解析界面时,编译器会先在具有不同签名的Msxml.h工作.