使用CooCox,从respitory添加了printf.c文件,在编译时报错
[cc] ..\obj\printf.o:(.data+0x428): first defined here
[cc] collect2.exe: error: ld returned 1 exit status
解决办法:在View-->Configuration -->Link中使能“Don't use standard system startup files”
这样gcc就不会去链接标准库了。
使用CooCox,从respitory添加了printf.c文件,在编译时报错
[cc] ..\obj\printf.o:(.data+0x428): first defined here
[cc] collect2.exe: error: ld returned 1 exit status
这样gcc就不会去链接标准库了。