error C2872: 'CException' : ambiguous symbol 错误
我在一个类中定义了下面的类(别人的库文件不能改) ,编译时候报告错误'CException' : ambiguous symbol 错误
namespace telos
{
namespace I2cApi
{
namespace Cpp
{
class CException
{
public:
virtual ~CException() {};
const std::string &GetDescription() const;
protected:
std::string m_description; //!< description of the error
};
我发现VC6里面也有同样的类名,应该这就是报告的原因,
但是我在头文件里加了名明空间,
using namespace std;
using namespace telos::I2cApi::Cpp;
可还是报告错误这是怎么回事呢?