1. 程式人生 > >關於qt error collect2 ld returned 1 exit status的錯誤

關於qt error collect2 ld returned 1 exit status的錯誤

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

               

剛才遇到的這個問題,在網上搜索了一下,

有說之前的程式已經運行了,有說pro檔案有問題的,

我找了一會,發現我在標頭檔案中定義了兩個slots,

在cPP檔案中沒有實現。

 

見nokia論壇

Another reason might be that your source is incomplete and calls method DECLARATIONS that get called but the method IMPLEMENTATIONS are missing.

Declaration is the stuff that you usually put in a header file (method signature without body)
Implementation is the signature with body.

Usually if you look in the linker output, you can find which implementation the linker is missing.

 

click the "Compile Output" view (Alt+4) to see more detailed info.

 

這樣,我找到了這個低階錯誤~~~

           

給我老師的人工智慧教程打call!http://blog.csdn.net/jiangjunshow

這裡寫圖片描述