I have two classes, and this is the header of one of them:
#ifndef WRAPPER_HPP #define WRAPPER_HPP #include using namespace std; class W
Your class and member (screen) are not static, which means they don't actually exist. You can't access a non static member in a static function.
Try to make your data members to be static.