標(biāo)題: 求教大家這個(gè)錯(cuò)誤如何解決Error: L6218E: Undefined symbol main (referred from _... [打印本頁(yè)]

作者: zzxiao    時(shí)間: 2019-9-28 09:56
標(biāo)題: 求教大家這個(gè)錯(cuò)誤如何解決Error: L6218E: Undefined symbol main (referred from _...
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'E:\ruanjian\keil5\ARM\ARMCC\Bin'
Build target 'Target 1'
assembling startup_stm32f10x_ld.s...
compiling misc.c...
compiling DMA_STM32F10x.c...
compiling GPIO_STM32F10x.c...
compiling system_stm32f10x.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_rcc.c...
linking...
.\Objects\STM32_Project.axf: Error: L6218E: Undefined symbol main (referred from __rtentry2.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 1 error messages.
".\Objects\STM32_Project.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02

H22PNPL8~FSS%)O$Z5]Y{B0.png (216.72 KB, 下載次數(shù): 102)

H22PNPL8~FSS%)O$Z5]Y{B0.png

作者: csmyldl    時(shí)間: 2019-9-28 17:25
雙擊錯(cuò)誤信息找到對(duì)應(yīng)一行,改正其錯(cuò)誤,好象有一定變量出現(xiàn)了問(wèn)題
作者: 51danpianji111    時(shí)間: 2019-9-28 18:01
你有把main.c添加進(jìn)SourceFiles組中嗎
作者: lenjohn    時(shí)間: 2025-3-7 09:51
你截圖位置應(yīng)該把文件都列出來(lái),應(yīng)該是少了main.c文件
作者: rundstedt    時(shí)間: 2025-3-7 12:06
compiling ... 那幾行里面為什么沒(méi)有main.c?
作者: 15716796365    時(shí)間: 2025-3-7 17:28
雙擊錯(cuò)誤信息找到對(duì)應(yīng)一行,改正其錯(cuò)誤,好象有一定變量出現(xiàn)雙擊錯(cuò)誤信息找到對(duì)應(yīng)一行,改正其錯(cuò)誤,好象有一定變量出現(xiàn)了問(wèn)題了問(wèn)題
作者: rundstedt    時(shí)間: 2025-3-8 09:30
15716796365 發(fā)表于 2025-3-7 17:28
雙擊錯(cuò)誤信息找到對(duì)應(yīng)一行,改正其錯(cuò)誤,好象有一定變量出現(xiàn)雙擊錯(cuò)誤信息找到對(duì)應(yīng)一行,改正其錯(cuò)誤,好象有 ...

人家是鏈接出的問(wèn)題,你的辦法不能用。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1