This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: PIC24/PIC30 port iprintf() name
- From: Karolina Lindqvist <karolina dot lindqvist at kramnet dot se>
- To: newlib at sourceware dot org
- Date: Sun, 8 Feb 2009 10:49:16 +0100
- Subject: Re: PIC24/PIC30 port iprintf() name
- References: <53FB405D-9D2C-482F-A9DB-C50E53B236A3@microchip.com> <001636163c5f7845d70461f66a60@google.com> <27ced5d00902030739r688715fj6bf59e097956cfe6@mail.gmail.com>
tisdagen den 3 februari 2009 skrev Leo Singer:
> Dear Karolina,
>
> It appears that I do have the "iprintf" symbol, but my linker insists
> otherwise. Do you know what is happening? See below.
>
> Leo
I found it out. pic30-gcc and newlib have different ideas about the names.
newlib calls it iprintf(), while pic30-gcc calls it _iprintf().
newlib have fiprintf(), while pic30-gcc wants _ifprintf()
and so on for all the other integer versions of the routines.
So either the routines have different names on windows and linux, for the pic,
or they have different names in newlib for the pic30, and other newlibs.
confusing.
I made another patch for pic30-gcc, to make it behave the newlib way.
Karolina