Hi Jonny, Thank you for your reply.
I updated my AVR-libc to latest version (1.7) and my AVR-gcc version is 4.5.3. Now, I also found headers in my "/usr/lib/avr/include". But, errors on my first post come out again: " ... /tmp/ccLA3p0G.s:829: Error: `,' required /tmp/ccLA3p0G.s:829: Error: constant value required /tmp/ccLA3p0G.s:829: Error: garbage at end of line ... " Are you using TinyOS1.x? Could you tell me your version of NesC, GCC and AVR-GCC compiler that are running well on your system? Best regards, lordelf 2012/6/29 Johny Mattsson <[email protected]> > On 28 June 2012 11:20, Tri Nguyen Phi Minh <[email protected]> wrote: > >> I used Synaptic and installed avr-gcc to the latest version 4.5.3. >> Above errors disappeared, but compiling for micaz sill came out error: >> "fatal error: inttypes.h: No such file or directory. Compilation >> termination." >> >> I checked and found inttypes.h located in /usr/include/. >> >> So, how can I tell avr-gcc looks for headers in that location? >> > > You really don't want that. The headers in /usr/include are for your > system libc, not the AVR-libc. Just upgrade your avr-libc package to > something more recent. In my case the AVR-libc headers reside in > /usr/lib/avr/include. > > Regards, > /Johny > -- > Johny Mattsson > Senior Software Engineer > > DiUS Computing Pty. Ltd. > *where ideas are engineered > * >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
