Yeah I included it.

On Mon, Jul 13, 2009 at 11:04 AM, Alan Marchiori <[email protected]>wrote:

> did you include the printf.h file?
>
> see http://docs.tinyos.net/index.php/The_TinyOS_printf_Library#Conclusion
> item #3
>
> "You MUST be sure to #include "printf.h" header file in every
> component in which you would like to call the printf() command.
> Failure to do so will result in obscure error messages making it
> difficult to identify the problem."
>
> On Sun, Jul 12, 2009 at 1:08 PM, roja
> chandanala<[email protected]> wrote:
> > I want to use printf statements in an application and I added the
> following
> > flags in the makefile.
> > CFLAGS += -I$(TOSDIR)/lib/printf
> > CFLAGS += -DPRINTF_BUFFER_SIZE=250
> >
> > The printf statement is a simple print statement with no arguments.
> >
> > But the 'make epic' still fails with the following errors:
> >
> /usr/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2/libc.a(printf.o):
> > In function `printf':
> >
> /home/xubuntos/tinyos-toolchain-packages/sources/msp430-build-tinyos-2.1/build/mspgcc-cvs/msp430-libc/src/stdlib/printf.c:39:
> > undefined reference to `putchar'
> > make: *** [exe0] Error 1
> >
> > Any help is appreciated.
> >
> > Thanks and regards,
> > Roja C
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to