我有一個程序,它編譯就好在了OpenSuse 11.2與QT 4.5版。然而,當我編譯使用了OpenSuse 11.4相同的程序與QT 4.7.3,我收到此錯誤信息:什麼導致這個QT 4.7.3錯誤?
"This file was generated using the moc from 4.7.3. It cannot be used with the include files from this version of Qt. The moc has changed too much"
誰能告訴我這是怎麼回事?
你嘗試過做一個「使清潔」刪除以前生成的文件,並重新運行「製造」之後呢? – Mat 2011-05-18 09:41:57
你確定你還不知道如何使用Qt老版本的包含? – Bart 2011-05-18 09:43:28
嘗試用乾淨的檢出/刪除所有moc _ /。moc文件,重新運行qmake 4.7.3並make。 – 2011-05-18 09:52:03