Ambiguous Symbol error in C++

I have a method called RL in main class of my Ogre3D project. It gives me an error

Error 7 error C2872: 'list' : ambiguous symbol

Function prototype of the method i'm using :
RL(std::list<char> r_data, Ogre::String addr, unsigned long port){..}

Can anyone help me to overcome from this problem..

Thanks in advance...:)
The docs I've found regarding that error seem to indicate it is an used caused by the 'using' directive. Are you calling 'using namespace std' or 'using std::list' either in the current file, or in an included header file?
Thanks a lot, I have removed 'using namespace std', but same error is occurring again. I have imported "ogresockets" and It seems like in it's header file there's a "using" directive calling . Do you have any idea to resolve the problem i have..?
Sounds to me like there's two definitions of list objects somewhere.

Perhaps in different header files you're including?
I don't think the problem is in your prototype function since you explicitly typed std::list<char> which is from std namespace explicitly.

somewhere in your code simbol list is used without scope operator.
Topic archived. No new replies allowed.