views:

65

answers:

1

I... feel really silly asking this, but I'm not sure how to resolve the problem.

This is a little snippit of my code (Objective-C++):

#include "eq/eq.h"
namespace eqOther
{
    class Window : public eq::Window //<-- Error occurs here
    {
    public:
        Window( eq::Pipe* parent ) : eq::Window( parent ) {}

        void popup();

    protected:
        virtual ~Window() {}

        virtual bool processEvent( const eq::Event& event );

    private:

    };
}

And the error I'm getting is: Use of 'Window' is ambiguous and it says it's declared in X.h as typedef XID Window and in window.h as class eq::Window which is its superclass.

The class I'm declaring should be in namespace eqOther yea? eqOther::Window is different than eq::Window!?

I feel soooo dumb, but I just don't see what I've done wrong...

+2  A: 

Perhaps you have some using namespace eq; somewhere in your headers

Dmitry Yudakov