object missing in reference to `Window::border'
Hello,
I'm hoping this is a simple problem but I can't figure it out. I've looked around on Google and found little helpful information.
When compiling, I get this message: 'error: object missing in reference to `Window::border''
The related (simplified) code is as follows:
window.h
Code:
class Window
{
public:
friend class WindowConfigListener;
...
private:
Image *border[9];
...
};
window.cpp
Code:
class WindowConfigListener : public ConfigListener
{
void optionChanged(const std::string &)
{
for(int i = 0; i < 9; i++)
{
Window::border[i]->setAlpha(config.getValue("guialpha", 0.8));
^ Fails here
}
}
};
I've looked around on google for a possible solution but was unable to find anything that was useful. I imagine there is a simple fix to this but the answer is eluding me.
Thank you for your time in helping me with this problem.