paip.undefined reference to MainWindow::xxx from moc_mainwindow.cpp错误解决
作者Attilax , EMAIL:1466519819@qq.com
来源: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()
作者Attilax , EMAIL:1466519819@qq.com
来源: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()