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
window.cppCode:class Window { public: friend class WindowConfigListener; ... private: Image *border[9]; ... };
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.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 } } };
Thank you for your time in helping me with this problem.



LinkBack URL
About LinkBacks



