Phung Nguyen wrote: > I am trying to build cross compiler for xc16x. I built successfully > binutils 2.18; gcc 4.0 and newlib 1.18. Everything is fine when > compiling a simple C file without any library call. It is also fine > when making a simple call to printf like printf("Hello world"). > However, i got error message from linker when call printf("i=%i",i);
I don't know the answer, but I think you are more likely to get one if you post to gcc-h...@gcc.gnu.org. The gcc@gcc.gnu.org list is for people developing gcc, rather than only building or using it. I hope you find your answer soon. Best regards, Ian