paip.undefined reference to MainWindow::xxx from moc_mainwindow.cpp错误解决

paip.undefined reference to  MainWindow::xxx  from moc_mainwindow.cpp错误解决


作者Attilax ,  EMAIL:[email protected] 
来源:attilax的专栏
地址:http://blog.csdn.net/attilax


现象:
------------
D:\qtworkspace\build-atiqtc9-deskc9-Debug\debug\moc_mainwindow.cpp:117: error: undefined reference to `MainWindow::ShowMainWindow()'


        case 6: _t->on_pushButton_testlib_clicked(); break;
        case 7: _t->on_pushButton_4_clicked(); break;
        case 8: _t->on_btn_exeNetDll_clicked(); break;
        case 9: _t->ShowMainWindow(); break;
 
        default: ;


原因: cpp 方法没有加上类::在前面.
----------------------------------------------


//MainWindow
void  ShowMainWindow()




解决:
-------------


void  MainWindow::ShowMainWindow()

你可能感兴趣的:(paip.undefined reference to MainWindow::xxx from moc_mainwindow.cpp错误解决)