Hi,
When I try to compile I get this error:
make micaz
mkdir -p build/micaz
compiling TestPrintfAppC to a micaz binary
ncc -o build/micaz/main.exe -Os -finline-limit=100000 -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb
-I/opt/tinyos-2.x/tos/lib/printf -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml TestPrintfAppC.nc-lm
In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53,
from TestPrintfAppC.nc:42:
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration
of function `FDEV_SETUP_STREAM'
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared
here (not in a function)
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer
/opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for
`atm128_stdout')
make: *** [exe0] Error 1
Pedro Pinto
On 8/20/07, Kevin Klues <[EMAIL PROTECTED]> wrote:
>
> Maybe you can find your answers in the newly added tutorial on using
> printf in TinyOS 2.0
>
>
> http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tutorial/lesson15.html
>
> Kevin
>
> On 8/16/07, Graham Rivers-Brown <[EMAIL PROTECTED]> wrote:
> > I am trying to manipulate string in my tinyOS application.
> > I am reading some data off a serial port in ASCII (working fine although
> was
> > fairly difficult to get going) which I then need to separate by tokens
> and
> > for some strings I then need to convert these from ASCII to integer.
> Now,
> > the standard C library has functions to do exactly this (strtok() and
> > atoi()) but I cannot use these functions for some reason. Anyone know
> > firstly why I cannot use these functions and secondly how I can go about
> > either finding some alternatives or using the standard C ones?
> > From my understanding it is because it is not being compiled for the pc,
> > therefore the standard C libraries do not apply.
> > I am using XubunTOS and programming MICAz devices (Atm128).
> >
> > I was trying to use the c libraries by including string.h but the
> compiler
> > still doesn't know about these functions. I would rather not write my
> own
> > functions to perform this.
> >
> > Thanks for any help and sorry if this is a silly question.
> >
> > Regards,
> > Graham
> >
> > PS. This is my first time using the tinyos-help so hopefully this works.
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> ~Kevin
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help