我正在尝试为基于 XMC1100 的开发板编码。我正在尝试本教程:http : //eleceng.dit.ie/frank/arm/BareMetalXMC2Go/index.html
我已经下载了blinky.tar.gz 文件并解压了。当我尝试“制作”时,我收到此错误:arm-none-eabi-ld:找不到 -lc
这是“make”的输出
arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -g init.c -o init.o
arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -g main.c -o main.o
arm-none-eabi-ld init.o main.o -L /usr/lib/gcc/arm-none-eabi/4.8.2/armv6-m -T linker_script.ld -lc --cref -Map main.map -nostartfiles -o main.elf
arm-none-eabi-ld: cannot find -lc
make: *** [main.elf] Error 1
Run Code Online (Sandbox Code Playgroud)
我正在使用 Linux Mint 17 Qiana
我缺少什么?
这是我的makefile:
LIBSPEC=-L /usr/lib/gcc/arm-none-eabi/4.8.2/armv6-m
# Specify the compiler to use
CC=arm-none-eabi-gcc
# Specify the assembler to use
AS=arm-none-eabi-as
# Specity the linker to use
LD=arm-none-eabi-ld
CCFLAGS=-mcpu=cortex-m0 …Run Code Online (Sandbox Code Playgroud)