Linux 下C程序找不到stdio.h等库函数

bsp/int/bsp_int.c: In function ‘system_irqtable_init’:
bsp/int/bsp_int.c:19:72: error: ‘NULL’ undeclared (first use in this function)
system_register_irqhandler((IRQn_Type)i , default_irqhandler , NULL);
^
bsp/int/bsp_int.c:19:72: note: each undeclared identifier is reported only once for each function it appears in
bsp/int/bsp_int.c: In function ‘system_irqhandler’:
bsp/int/bsp_int.c:36:9: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
return ;
^
Makefile:51: recipe for target ‘obj/bsp_int.o’ failed
make: *** [obj/bsp_int.o] Error 1

环境Ubuntu
打完环境就没有写需要库函数的环境也没有管。

看别人打方法下载了下面这个,不管用
sudo apt-get install libc6-dev

然后想应该就是glibc找不到吧,就下载了下面的,程序就编译过去了。
sudo apt install glibc-doc
sudo apt install glibc-source

你可能感兴趣的:(Ubuntu日常操作)