Hi,

   I have just started learning Tinyos And I've installed tinyos 2.0 beta and anything but TOSSIM works fine.I tried to compile apps/Blink with following command:

 $  make micaz sim

  But it does not work.

 I was wondering if anyone could help me figure out what's going wrong.

Thank you, all.

the warning and errors are:

  mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -fPIC -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline-limit=100000 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb  -Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
In file included from C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_mac.c:34,
                 from C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/tos.h:90:
C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:14: warning: declaration of `link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of `link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration
C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: In function `sim_gain_allocate_link':
C:/tinyos/cygwin/opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:134: warning: declaration of `link' shadows global declaration
/usr/include/sys/unistd.h:97: warning: location of shadowed declaration

.......................

 

g++ -c -shared -fPIC -o build/micaz/tossim.o -g -O0  /opt/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.3 -I/opt/tinyos-2.x/tos/lib/tossim
cc1plus: warning: -fPIC ignored for target (all code is position independent)
  linking into shared object ./_TOSSIMmodule.so
g++ -shared build/micaz/pytossim.o build/micaz/sim.o build/micaz/tossim.o -lstdc++ -o _TOSSIMmodule.so
build/micaz/pytossim.o(.text+0x490): In function `swig_varlink_repr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:388: undefined reference to `_PyString_FromString'
build/micaz/pytossim.o(.text+0x56e): In function `swig_varlink_getattr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:413: undefined reference to `__imp__PyExc_NameError'
build/micaz/pytossim.o(.text+0x578):/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:413: undefined reference to `_PyErr_SetString'
build/micaz/pytossim.o(.text+0x5de): In function `swig_varlink_setattr':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:426: undefined reference to `__imp__PyExc_NameError'

......................................

Thank you,all
 

 








你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
多 达 1.1 亿 中 国 人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得 280 兆 超 大 网 盘
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to