How to undo the changes in the mock file?
-
I was trying something,I got a message saying your moc file has changed I saved it.Now I'm getting errors.How to fix this?I want to undo the save in the moc file
-
@kishore_hemmady said in How to undo the changes in the mock file?:
I want to undo the save in the moc file
simply delete the file. It will be recreated automatically during the next build. Thus you never should edit a moc file, since it is created automatically/dynamically
-
I deleted the moc files.Its again creating those files only.Im getting this error
/home/kishor/build-MARS-GUI-Desktop_Qt_5_9_3_GCC_64bit-Debug/moc_mainwindow.cpp:105: error: undefined reference to `MainWindow::receiver(QString)'
:-1: error: collect2: error: ld returned 1 exit status -
@kishore_hemmady rebuild completely
-
@kishore_hemmady said in How to undo the changes in the mock file?:
MainWindow::receiver(QString)
are you sure that there is an implementation of that method in the cpp file?!