Hi,

I'm implementing a class to do operations with a SQLite database and I have this header file

Qt Code:
  1. ...
  2. class ObjectDatabase{
  3. public:
  4. static bool openDatabase(QString);
  5. static bool createTables();
  6. static void closeDatabase();
  7. static bool vacuumDatabase();
  8. static QString errorString();
  9. protected:
  10. static void setErrorString(QString);
  11. private:
  12. static QString m_errorString;
  13. };
  14. ...
To copy to clipboard, switch view to plain text mode 

But when I try to access from this functions to the var m_errorString the compiler say that the var isn't defined.

What can be the problem?

Thank's