arm里面用arm-gcc编译log(R/21),加了#include了但是报错
lh@ubuntu:~/opt/FriendlyARM/mini2451/examples/adc-test$ vi adc-test.c
lh@ubuntu:~/opt/FriendlyARM/mini2451/examples/adc-test$ make
arm-linux-gcc adc-test.c -Wall -O2 -o adc-test
/tmp/cc0sAjer.o: In function main':
log'
adc-test.c:(.text+0xe8): undefined reference to
collect2: ld returned 1 exit status
make: *** [adc-test] 错误 1
大神们指点一二
连接时,没有找到tolog
tolog没用定义吧
tolog出问题啦
看样子是你的to log 没有加_吧