subj в строке 45
//Server.h class Server : public QTcpServer { Q_OBJECT public: typedef QHash<int, Student*> Students; ... Students* getStudents () const; ... private: Students _students; }; //Server.cpp void Server::setPort( quint16 port ) { _port = port; } quint16 Server::getPort() const { return _port; } Students* Server::getStudents() const // line 45 { return _students; }
Students на самом деле является «вложенным типом», и компилятор не может понять, к чему он относится, поскольку он еще не видел контекст Server::.Вам нужно:
Students
Server::
Server::Students* Server::getStudents() const