I have 2 files, one is mainwindow.cpp and the other is mega.cpp


In mega.cpp i call a function Void that is defined in mainwindow.cpp, like this:

MainWindow::newIdentity();

But i get this error:

error: cannot call member function `void MainWindow::newIdentity()' without obj
ect