一个新手 第一次建立工程 发现编译后出现了下面错误

2019-07-21 05:05发布

Build target 'LED'
compiling main.c...
main.c(35): warning:  #1-D: last line of file ends without a newline
   
main.c: 1 warning, 0 errors
compiling core_cm3.c...
"no source": Error: command-line:  #564: cannot open embedded assembler output file "C:UsersYY丶AppDataLocalTempp183c-2": No such file or directory
..COREcore_cm3.c: 0 warnings, 1 error
compiling sys.c...
"no source": Error: command-line:  #564: cannot open embedded assembler output file "C:UsersYY丶AppDataLocalTempp248c-2": No such file or directory
..SYSTEMsyssys.c: 0 warnings, 1 error
linking...
..OBJLED.axf: error: L6002U: Could not open file ..objcore_cm3.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
"..OBJLED.axf" - 1 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:03 捕获.JPG

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
11条回答
YY丶
1楼-- · 2019-07-22 09:28
peng1554 发表于 2019-2-20 22:28
1.电脑该用户名为YY试试
2.上面方法不行的话,可以试试修改环境变量的方法:https://pan.baidu.com/s/1YPc ...

改了之后还是有错误

Build target 'LED'
compiling main.c...
main.c(39): warning:  #1-D: last line of file ends without a newline
   
main.c: 1 warning, 0 errors
compiling stm32f10x_it.c...
compiling system_stm32f10x.c...
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling misc.c...
compiling stm32f10x_adc.c...
compiling stm32f10x_bkp.c...
compiling stm32f10x_can.c...
compiling stm32f10x_cec.c...
compiling stm32f10x_crc.c...
compiling stm32f10x_dac.c...
compiling stm32f10x_dbgmcu.c...
compiling stm32f10x_dma.c...
compiling stm32f10x_exti.c...
compiling stm32f10x_flash.c...
compiling stm32f10x_fsmc.c...
compiling stm32f10x_gpio.c...
compiling stm32f10x_i2c.c...
compiling stm32f10x_iwdg.c...
compiling stm32f10x_pwr.c...
compiling stm32f10x_rcc.c...
compiling stm32f10x_rtc.c...
compiling stm32f10x_sdio.c...
compiling stm32f10x_spi.c...
compiling stm32f10x_tim.c...
compiling stm32f10x_usart.c...
compiling stm32f10x_wwdg.c...
compiling delay.c...
compiling sys.c...
compiling usart.c...
linking...
..OBJLED.axf: Error: L6218E: Undefined symbol SysTick_CLKSourceConfig (referred from delay.o).
..OBJLED.axf: Error: L6218E: Undefined symbol NVIC_Init (referred from usart.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 2 error messages.
"..OBJLED.axf" - 2 Error(s), 1 Warning(s).
Target not created.
Build Time Elapsed:  00:00:18
YY丶
2楼-- · 2019-07-22 14:11
xzh5508 发表于 2019-2-21 11:28
楼上几位说的都对,另外target option->C/C++里面是否包含了这些文件的地址!

那应该怎么办呢
peng1554
3楼-- · 2019-07-22 18:37
YY丶 发表于 2019-2-21 14:17
改了之后还是有错误

Build target 'LED'

编译例程也是这种错误提示吗?
xzh5508
4楼-- · 2019-07-22 21:15
YY丶 发表于 2019-2-21 14:32
那应该怎么办呢

打开target option ->c/c++ 下面有一个include paths 把那些文件夹到包含进去试试?
714727136
5楼-- · 2019-07-22 23:10
 精彩回答 2  元偷偷看……

一周热门 更多>