Dear David, I tried what you said and I changed the rules for pc compilation. But some mistake showed up. Something like: mkdir -p build/pc
compiling Blink to a pc binary ncc -o build/pc/main.exe MYLIB.o -g -O0 -pthread -fnesc-nido-tosnodes=1000 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME="Blink" -DIDENT_PROGRAM_NAME_BYTES="66,108,105,110,107,0" -DIDENT_USER_ID="admin" -DIDENT_USER_ID_BYTES="97,100,109,105,110,0" -DIDENT_HOSTNAME="c430pc2" -DIDENT_HOSTNAME_BYTES="99,52,51,48,112,99,50,0" -DIDENT_USER_HASH=0x43d304f7L -DIDENT_UNIX_TIME=0x46fa5102L Blink.nc<http://blink.nc/>-lm gcc: unrecognized option `-pthread'C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function`__nesc_nido_initialise':C:/PROGRA~1/UCB/cygwin/opt/tinyos- 1.x/tos/platform/pc/PowerStateM.nc:478: warning: passing arg 1 of `memset' discards qualifiers from pointer target type/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: MYLIB.o: Relocations in generic ELF (EM: 83) MYLIB.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status make: *** [exe0] Error 1 Seems something wrong happened at the linking stage. Really do not understand why file is in 'wrong format' here... Could you figure out what is wrong? Thank you. -- Best wishes, Kenneth Chan ------------------------ Wish you have a good day!
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
