Home > ambiguous symbol > error 1 error c2872 ambiguous symbol

Error 1 Error C2872 Ambiguous Symbol

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the ambiguous symbol definition workings and policies of this site About Us Learn more about Stack

Ambiguous Symbol Visual Studio

Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs

C++ Ambiguous Symbol Namespace

Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join

Error C2872: 'string' : Ambiguous Symbol

them; it only takes a minute: Sign up getting error for ambiguous symbol and need help to remove it up vote 1 down vote favorite 1 i am getting this error which i unable to remove in visual studio 2010. i am using one third party library which uses its own definition for "string" Also visual studio's xstring file error c2872: 'cdialogimpl' : ambiguous symbol is there in the folder where it gets installed. now when i am trying to compile code i am getting following error 1>...\xyz.cpp(24): error C2872: 'string' : ambiguous symbol 1> could be 'third party library path\string.h(31) 1> or 'c:\program files (x86)\microsoft visual studio 10.0\vc\include\xstring(2063) : std::string' compiler is not able to understand which string definition it should use. How can i remove this error in visual studi 2010. I want the code to use third party string definition. i tried to set third party path in include directory but still i am seeing this error. Please help me. Thanks in advance c++ share|improve this question asked Feb 20 '12 at 11:27 novice 19137 Use std::string instead of just string? –BoBTFish Feb 20 '12 at 11:30 @BoBTFish "I want the code to use third party string definition." ;) –user1203803 Feb 20 '12 at 11:31 add a comment| 5 Answers 5 active oldest votes up vote 5 down vote This is an example of a namespace clash. You probably have in your code: #in

here for a quick overview of the site Help error c2872 ambiguous symbol visual c++ Center Detailed answers to any questions you might have Meta c2872 error c++ Discuss the workings and policies of this site About Us Learn more about Stack string ambiguous c++ Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://stackoverflow.com/questions/9360375/getting-error-for-ambiguous-symbol-and-need-help-to-remove-it x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What causes ambiguous symbol errors? C++ up vote 0 down vote favorite I am trying to http://stackoverflow.com/questions/16800831/what-causes-ambiguous-symbol-errors-c learn C++ by doing a small windows phone app. Currently I am just following a tutorial to get to grips with developing for the windows phone. However, I have encountered a ambiguous signal error when trying to build the code. I am used to the niceties associated with Java and am a bit lost as to what could be causing this error. The error dump I get is: 1>c:\program files (x86)\windows phone kits\8.0\include\wrl\event.h(740): error C2872: 'EventRegistrationToken' : ambiguous symbol 1> could be 'c:\program files (x86)\windows phone kits\8.0\include\eventtoken.h(51) : EventRegistrationToken' 1> or 'c:\program files (x86)\windows phone kits\8.0\windows metadata\windows.winmd : Windows::Foundation::EventRegistrationToken' 1> c:\program files (x86)\windows phone kits\8.0\include\wrl\event.h(1035) : see reference to class template instantiation 'Microsoft::WRL::EventSource' being compiled 1>c:\program files (x86)\windows phone kits\8.0\include\wrl\event.h(814): error C2872: 'EventRegistrationToken' : ambiguous symbol 1> could be 'c:\program files (x86)\windows phone kits\8.0\include\eventtoken.h(51) : EventRegistrationToken' 1> or 'c:\program files (x86)\window

Ambiguous Symbol error, specifically: “error C2872: 'IMasterLoader' : ambiguous symbol” when using an interface I wrote in C# with a class built in http://geekswithblogs.net/THines01/archive/2011/04/20/ambiguoussymbol.aspx C++. 1: namespace IMasterLoader 2: { 3: public interface IMasterLoader where T : class 4: { 5: bool Load(T master, ref string strError); 6: } 7: }   Code producing the error: 1: // LmCellSectorLog.h 2: #pragma once 3: using namespace System; 4: using namespace System::Collections::Generic; 5: using namespace System::Data; 6:   7: namespace LmCellSectorLog { 8: using namespace IMasterLoader; 9: public ambiguous symbol ref class CLmCellSectorLogLoader : IMasterLoader 10: { 11: public: 12: virtual bool Load(CLmCellSectorLogMaster^ master, String^% strError); 13: }; 14: }     Compiler generated error C2872: 'IMasterLoader' : ambiguous symbol: While searching for a solution to this problem, I encountered the Compiler Error C2872 (C++) page from MSDN, which didn’t have my exact solution, but led me to think differently about the error c2872 ambiguous syntax. Jumping forward to the solution: Assuming the problem was the compiler’s “scope” and recognition of the interface, I eventually changed the reference by fully qualifying the interface name with the “scope resolution operator (::)” and that solved the problem. At that point, it was no longer necessary to reference the interface at the namespace:   1: public ref class CLmCellSectorLogLoader : ::IMasterLoader::IMasterLoader 2: { 3: public: 4: virtual bool Load(CLmCellSectorLogMaster^ master, String^% strError); 5: };     Technorati Tags: code,ambiguous symbol,.net,dot net,CSharp,CPlusPlus,C#,C++ Share This Post:Short Url: http://wblo.gs/biE posted @ Wednesday, April 20, 2011 9:26 AM Print Comments on this entry: #re: Ambiguous Symbol -- Compiler Error C2872 Left by Robin Wernick at 1/3/2013 7:33 PM Like most people you got half of the "if" question right. What if!!! you wanted it to go the other way, then you wouldn't have an answer. The solution shouldn't have to do with wrapping everything in a namespace either. Your comment: Title: Please enter a title Name: Please enter your name Email: (not displayed) Email is not required, but it must be valid if specified. Comment: Please ente

 

Related content

ambiguous symbol error

Ambiguous Symbol Error table id toc tbody tr td div id toctitle Contents div ul li a href Error C Istream Ambiguous Symbol a li li a href Idataobject Ambiguous Symbol a li li a href Ambiguous Symbol Definition a li li a href Shared ptr Ambiguous Symbol a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn relatedl more about Stack Overflow the company Business Learn more about hiring developers p

ambiguous symbol error c2872

Ambiguous Symbol Error C table id toc tbody tr td div id toctitle Contents div ul li a href Error C filetime Ambiguous Symbol a li li a href Error C idataobject Ambiguous Symbol a li li a href Error C string Ambiguous Symbol a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more relatedl about Stack Overflow the company Business Learn more about hiring developers error c dword ambiguous symbol

error 2 error c2872 ambiguous symbol

Error Error C Ambiguous Symbol table id toc tbody tr td div id toctitle Contents div ul li a href Error C string Ambiguous Symbol a li li a href Ambiguous Symbol Visual Studio a li li a href C Ambiguous Symbol Namespace a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more relatedl about Stack Overflow the company Business Learn more about hiring developers or ambiguous symbol definition posting ads

error 2872

Error table id toc tbody tr td div id toctitle Contents div ul li a href C Corral a li li a href Error C cdialogimpl Ambiguous Symbol a li li a href Ambiguous Symbol Definition a li ul td tr tbody table p games PC games error c ambiguous symbol c Windows games Windows phone games Entertainment All Entertainment error c string ambiguous symbol Movies TV Music Business Education Business Students educators p h id C Corral p Developers Sale Sale Find a store Gift cards Products Software services Windows Office Free downloads security Internet p h id Error

error c2872 ambiguous symbol

Error C Ambiguous Symbol table id toc tbody tr td div id toctitle Contents div ul li a href Error C string Ambiguous Symbol a li li a href Ambiguous Symbol Definition a li li a href Ambiguous Symbol Visual Studio a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this relatedl site About Us Learn more about Stack Overflow the company Business error c dword ambiguous symbol Learn more about hiring developers or posting ads

error c2872 ambiguous

Error C Ambiguous table id toc tbody tr td div id toctitle Contents div ul li a href Error C filetime Ambiguous Symbol a li li a href Error C string Ambiguous Symbol a li li a href Error C iserviceprovider Ambiguous Symbol a li li a href Ambiguous Symbol Definition a li ul td tr tbody table p resources Windows Server resources Programs MSDN subscriptions Overview Benefits relatedl Administrators Students Microsoft Imagine Microsoft Student Partners error c dword ambiguous symbol ISV Startups TechRewards Events Community Magazine Forums Blogs Channel p h id Error C filetime Ambiguous Symbol p Documentation

error c2872 ambiguous symbol namespace

Error C Ambiguous Symbol Namespace table id toc tbody tr td div id toctitle Contents div ul li a href C Ambiguous Symbol Namespace a li li a href Error C Ambiguous Symbol Visual C a li li a href C Error C a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the relatedl workings and policies of this site About Us Learn more ambiguous symbol definition about Stack Overflow the company Business Learn more about hiring developers or posting error

error symbol is ambiguous

Error Symbol Is Ambiguous table id toc tbody tr td div id toctitle Contents div ul li a href Error C iserviceprovider Ambiguous Symbol a li li a href Error C Ambiguous Symbol C a li li a href Ambiguous Symbol Definition a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more relatedl about Stack Overflow the company Business Learn more about hiring developers or error c ambiguous symbol posting ads

idataobject ambiguous symbol error

Idataobject Ambiguous Symbol Error table id toc tbody tr td div id toctitle Contents div ul li a href Error C Ambiguous Symbol a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to relatedl any questions you might have Meta Discuss the iserviceprovider ambiguous symbol servprov h workings and policies of this site About Us Learn more about Stack cannot use this indirection on type iserviceprovider Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs error c filetime ambiguous symbol

iserviceprovider error

Iserviceprovider Error table id toc tbody tr td div id toctitle Contents div ul li a href Error C filetime Ambiguous Symbol a li li a href Error C Ambiguous Symbol a li li a href System string To Std string a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and relatedl policies of this site About Us Learn more about Stack c cli iserviceprovider ambiguous symbol Overflow the company Business Learn more about hiring developers or posting ads

iserviceprovider ambiguous symbol error

Iserviceprovider Ambiguous Symbol Error table id toc tbody tr td div id toctitle Contents div ul li a href Iserviceprovider Ambiguous Symbol Servprov H a li li a href Error C filetime Ambiguous Symbol a li li a href System string To Std string a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might relatedl have Meta Discuss the workings and policies of this p h id Iserviceprovider Ambiguous Symbol Servprov H p site About Us Learn more about Stack Overflow the company Business Learn