当前位置: 技术问答>linux和unix
linux下make后的信息,大家分析一下错误!
来源: 互联网 发布时间:2015-07-02
本文导语: 我只把错误写出来: arm-elf-gcc -O2 -gstabs+ -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/44b0/uClinux-44b0ii/lib/libc/in clude -I/44b0/uClinux-44b0ii/lib/libm -I/44b0/uClinux-44b0ii -fno-builtin -nostartfiles -I/44b0/uClinux-44b0i i/linux/include -...
我只把错误写出来:
arm-elf-gcc -O2 -gstabs+ -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/44b0/uClinux-44b0ii/lib/libc/in
clude -I/44b0/uClinux-44b0ii/lib/libm -I/44b0/uClinux-44b0ii -fno-builtin -nostartfiles -I/44b0/uClinux-44b0i
i/linux/include -c -o iic.o iic.c
iic.c: In function `setupIICPin':
iic.c:8: `rPCONF' undeclared (first use in this function)
iic.c:8: (Each undeclared identifier is reported only once
iic.c:8: for each function it appears in.)
iic.c: In function `WaitINT':
iic.c:15: `rINTPND' undeclared (first use in this function)
iic.c:18: `rI_ISPC' undeclared (first use in this function)
iic.c: In function `iic_main':
iic.c:27: `rINTPND' undeclared (first use in this function)
iic.c:28: `rIICCON' undeclared (first use in this function)
iic.c:31: `rIICADD' undeclared (first use in this function)
iic.c:32: `rIICSTAT' undeclared (first use in this function)
iic.c: In function `IIC_WR':
iic.c:54: `rIICDS' undeclared (first use in this function)
iic.c:55: `rIICSTAT' undeclared (first use in this function)
iic.c:60: `rIICCON' undeclared (first use in this function)
iic.c: In function `IIC_RD':
iic.c:92: `rIICDS' undeclared (first use in this function)
iic.c:93: `rIICSTAT' undeclared (first use in this function)
iic.c:98: `rIICCON' undeclared (first use in this function)
make[2]: *** [iic.o] Error 1
make[2]: Leaving directory `/44b0/uClinux-44b0ii/user/genmac'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/44b0/uClinux-44b0ii/user'
make: *** [subdirs] Error 1
------ Finished ! ------
arm-elf-gcc -O2 -gstabs+ -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/44b0/uClinux-44b0ii/lib/libc/in
clude -I/44b0/uClinux-44b0ii/lib/libm -I/44b0/uClinux-44b0ii -fno-builtin -nostartfiles -I/44b0/uClinux-44b0i
i/linux/include -c -o iic.o iic.c
iic.c: In function `setupIICPin':
iic.c:8: `rPCONF' undeclared (first use in this function)
iic.c:8: (Each undeclared identifier is reported only once
iic.c:8: for each function it appears in.)
iic.c: In function `WaitINT':
iic.c:15: `rINTPND' undeclared (first use in this function)
iic.c:18: `rI_ISPC' undeclared (first use in this function)
iic.c: In function `iic_main':
iic.c:27: `rINTPND' undeclared (first use in this function)
iic.c:28: `rIICCON' undeclared (first use in this function)
iic.c:31: `rIICADD' undeclared (first use in this function)
iic.c:32: `rIICSTAT' undeclared (first use in this function)
iic.c: In function `IIC_WR':
iic.c:54: `rIICDS' undeclared (first use in this function)
iic.c:55: `rIICSTAT' undeclared (first use in this function)
iic.c:60: `rIICCON' undeclared (first use in this function)
iic.c: In function `IIC_RD':
iic.c:92: `rIICDS' undeclared (first use in this function)
iic.c:93: `rIICSTAT' undeclared (first use in this function)
iic.c:98: `rIICCON' undeclared (first use in this function)
make[2]: *** [iic.o] Error 1
make[2]: Leaving directory `/44b0/uClinux-44b0ii/user/genmac'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/44b0/uClinux-44b0ii/user'
make: *** [subdirs] Error 1
------ Finished ! ------
|
好了就结贴吧。
|
不就是说一些东西没声明吗?
|
是啊,看看这些符号是不是有哪个头文件没包含进去。