Not enough information to list image symbols. Not enough information to list load addresses in ...

linking...
..\Objects\BBQ_Wifi.axf: Error: L6218E: Undefined symbol Clear_Led_Timer (referred from main.o).
..\Objects\BBQ_Wifi.axf: Error: L6218E: Undefined symbol Get_Led_Timer (referred from main.o).
..\Objects\BBQ_Wifi.axf: Error: L6218E: Undefined symbol Systick_Configiration (referred from main.o).
..\Objects\BBQ_Wifi.axf: Error: L6218E: Undefined symbol Counter_Decrement (referred from gd32e230_it.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 4 error messages.
"..\Objects\BBQ_Wifi.axf" - 4 Error(s), 0 Warning(s).

在一個項目中,編譯發現這樣一個錯誤。

這個錯誤很明確的告訴我,這個標識符沒有定義。

檢查過函數實體和函數原型後,沒有發現問題。又檢查了頭文件是否包含,文件路徑是否添加,都沒有發現問題。

最後我發現自己沒有把文件添加到工程項目中。在MDK keil這個IDE中,單擊擊view->Project window.看到整個project文件組成。

接着在這個Project windows中,選擇一個文件夾,鼠標右鍵單擊彈窗,選擇“manage Project items..”.

把源文件添加進入,如圖,編譯錯誤提示“沒有定義的標識符(也就是函數實體)”,都這這個源文件中,因爲沒有添加到工程中,所以只有頭文件的話,只有原型,而沒有實體。

這樣就解決了編譯出錯的問題。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章