用的是Contiki -msp430源码,移植到CC430 CCS环境的代码,
在增加printf 重定向后,报以下错误:
#10056 symbol "fputc" redefined: first defined in "./platform/MSP430/contiki-sky-main.obj"; redefined in "D:\TI\ccsv6\tools
\compiler\msp430_15.12.3.LTS\lib\rts430x_lc_sd_eabi.lib<fputc.obj>" CC430+Contiki_test_1.2.1_ccs C/C++ Problem
添加的代码为:
int
fputc(int ch, register FILE* f)
{
uart0_writeb((uint8_t)ch);
return ch;
}
请帮忙分析一下,找了好久原因 还是一头雾水,就发现编译器会自己去编译stdio下面的一些函数