I get the compile error
cannot call member function ‘bool GMLwriter::write(const char*, MyList<User*>&, std::vector<std::basic_string<char> >)’ without object
when I try to compile
class GMLwriter{
public:
bool write(const char *fn, MyList<User*>& my_vec, vector<string>edges);
};
the function is defined later and called in main with
GMLwriter::write(argv[3], Users, edges);
Users is declared before with MyList<User*> Users; (MyList is a List ADT and I have a User class) and edges is declared with vector<string>edges
to what object is this error referring?
GMLwriter::write(argv[3], Users, edges);GMLwriter obj; obj.write(...);