新手入门
- 积分
- 10
- 金钱
- 10
- 注册时间
- 2024-1-24
- 在线时间
- 3 小时
|
1金钱
工作环境ubuntu22.04, 编译器7.5.0,都是最新的稳定版本。
裸机例程代码,编译报错,请高手帮忙解答下,谢谢!log如下:
book@book-virtual-machine:~/linux/board_drivers/15_lcd$ make
arm-linux-gnueabihf-gcc -Wall -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/start.o project/start.S
arm-linux-gnueabihf-gcc -Wall -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/lib1funcs.o stdio/lib/lib1funcs.S
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/main.o project/main.c
In file included from project/main.c:20:0:
bsp/lcd/bsp_lcd.h:85:21: warning: inline function ‘lcd_readpoint’ declared but never defined
inline unsigned int lcd_readpoint(unsigned short x,unsigned short y);
^~~~~~~~~~~~~
bsp/lcd/bsp_lcd.h:84:13: warning: inline function ‘lcd_drawpoint’ declared but never defined
inline void lcd_drawpoint(unsigned short x,unsigned short y,unsigned int color);
^~~~~~~~~~~~~
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/ctype.o stdio/lib/ctype.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/div64.o stdio/lib/div64.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/muldi3.o stdio/lib/muldi3.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/printf.o stdio/lib/printf.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/string.o stdio/lib/string.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/vsprintf.o stdio/lib/vsprintf.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_clk.o bsp/clk/bsp_clk.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_led.o bsp/led/bsp_led.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_delay.o bsp/delay/bsp_delay.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_beep.o bsp/beep/bsp_beep.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_gpio.o bsp/gpio/bsp_gpio.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_key.o bsp/key/bsp_key.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_exit.o bsp/exit/bsp_exit.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_int.o bsp/int/bsp_int.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_epittimer.o bsp/epittimer/bsp_epittimer.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_keyfilter.o bsp/keyfilter/bsp_keyfilter.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_uart.o bsp/uart/bsp_uart.c
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_lcdapi.o bsp/lcd/bsp_lcdapi.c
In file included from bsp/lcd/bsp_lcdapi.h:14:0,
from bsp/lcd/bsp_lcdapi.c:11:
bsp/lcd/bsp_lcd.h:85:21: warning: inline function ‘lcd_readpoint’ declared but never defined
inline unsigned int lcd_readpoint(unsigned short x,unsigned short y);
^~~~~~~~~~~~~
bsp/lcd/bsp_lcd.h:84:13: warning: inline function ‘lcd_drawpoint’ declared but never defined
inline void lcd_drawpoint(unsigned short x,unsigned short y,unsigned int color);
^~~~~~~~~~~~~
arm-linux-gnueabihf-gcc -Wall -Wa,-mimplicit-it=thumb -nostdlib -fno-builtin -c -O2 -I imx6ul -I stdio/include -I bsp/clk -I bsp/led -I bsp/delay -I bsp/beep -I bsp/gpio -I bsp/key -I bsp/exit -I bsp/int -I bsp/epittimer -I bsp/keyfilter -I bsp/uart -I bsp/lcd -o obj/bsp_lcd.o bsp/lcd/bsp_lcd.c
arm-linux-gnueabihf-ld -Timx6ul.lds -o lcd.elf obj/start.o obj/lib1funcs.o obj/main.o obj/ctype.o obj/div64.o obj/muldi3.o obj/printf.o obj/string.o obj/vsprintf.o obj/bsp_clk.o obj/bsp_led.o obj/bsp_delay.o obj/bsp_beep.o obj/bsp_gpio.o obj/bsp_key.o obj/bsp_exit.o obj/bsp_int.o obj/bsp_epittimer.o obj/bsp_keyfilter.o obj/bsp_uart.o obj/bsp_lcdapi.o obj/bsp_lcd.o -lgcc -L /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/lib/gcc/arm-linux-gnueabihf/7.5.0
obj/bsp_lcdapi.o: In function `lcd_drawline':
bsp_lcdapi.c.text+0x68): undefined reference to `lcd_drawpoint'
obj/bsp_lcdapi.o: In function `lcd_draw_Circle':
bsp_lcdapi.c.text+0x12c): undefined reference to `lcd_drawpoint'
bsp_lcdapi.c.text+0x140): undefined reference to `lcd_drawpoint'
bsp_lcdapi.c.text+0x158): undefined reference to `lcd_drawpoint'
bsp_lcdapi.c.text+0x170): undefined reference to `lcd_drawpoint'
obj/bsp_lcdapi.o:bsp_lcdapi.c.text+0x17a): more undefined references to `lcd_drawpoint' follow
make: *** [Makefile:59: lcd.bin] Error 1
|
|