Hello!
I just wanted to test printf-library using the printf-tutorial in 
apps/tutorials/printf
Trying to compile and install the code at my micaZ-node, I get an error 
while compiling : app.c:(.text+0x15a): undefined reference to `printfflush'

Somebody has an idea what's wrong?
I'm using TinyOS 2.1.1

Here is the whole output:

run:  "make" "-C" "/home/markus/workspaceOld/PrintTest" "-f" 
"/home/markus/workspaceOld/PrintTest/TinyOS_Plugin_Makefile" "micaz" 
"install.1" "mib510./dev/ttyUSB0"
at 11.04.2011 07:37:05
set: TOSROOT = /opt/tinyos-2.1.1
set: TOSDIR = /opt/tinyos-2.1.1/tos
set: ECLIPSE_PROJECT = /home/markus/workspaceOld/PrintTest
set: PFLAGS = \"-I/home/markus/workspaceOld/PrintTest/src\" 
\"-I/opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf\" 
\"-I/home/markus/workspaceOld/PrintTest/build/micaz\"
set: MAKERULES = /opt/tinyos-2.1.1/support/make/Makerules
set: COMPONENT = /home/markus/workspaceOld/PrintTest/src/TestPrintfAppC
make: Gehe in Verzeichnis '/home/markus/workspaceOld/PrintTest'
mkdir -p build/micaz
     compiling /home/markus/workspaceOld/PrintTest/src/TestPrintfAppC to 
a micaz binary
ncc -o build/micaz/main.exe  -Os 
"-I/home/markus/workspaceOld/PrintTest/src" 
"-I/opt/tinyos-2.1.1/tos/lib/tosthreads/lib/printf" 
"-I/home/markus/workspaceOld/PrintTest/build/micaz" -fnesc-separator=__ 
-Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c 
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param 
max-inline-insns-single=100000 -DIDENT_APPNAME=\"/home/markus/wo\" 
-DIDENT_USERNAME=\"markus\" -DIDENT_HOSTNAME=\"markus3\" 
-DIDENT_USERHASH=0x349dc7f7L -DIDENT_TIMESTAMP=0x4da29381L 
-DIDENT_UIDHASH=0xf861bc79L -fnesc-dump=wiring 
-fnesc-dump='interfaces(!abstract())' 
-fnesc-dump='referenced(interfacedefs, components)' 
-fnesc-dumpfile=build/micaz/wiring-check.xml 
/home/markus/workspaceOld/PrintTest/src/TestPrintfAppC.nc -lm
/tmp/ccS95iK3.o: In function `main':
app.c:(.text+0x15a): undefined reference to `printfflush'
make: *** [exe0] Fehler 1
make: Verlasse Verzeichnis '/home/markus/workspaceOld/PrintTest'
finished (exit code: '2', took: 00:01.141)



Greets, Markus
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to