i have installed tinyos-2.x as per the instructios in wikipedia
when i try to run blink program in tossim like
make micaz sim
it shows up error like
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: ISO C++ forbids
declaration of `SWIG_TypeClientData' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: redefinition of `
int SWIG_TypeClientData'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2943: error: `int
SWIG_TypeClientData' previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3316: error: initializer list
being treated as compound expression
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3317: error: ISO C++ forbids
declaration of `Py_INCREF' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3317: error: redefinition of `
int Py_INCREF'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3238: error: `int Py_INCREF'
previously defined here
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3318: error: parse error before
`return'
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3320: error: syntax error befor
`[' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3473: error: parse error before
`}' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx: In function `void init_TOSSIM(
':
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3480: error: ISO C++ forbids
declaration of `PyObject' with no type
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3480: error: parse error before
`*' token
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3482: error: `m' undeclared
(first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3484: error: `SWIG_globals'
undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3484: error: `SWIG_newvarlink'
undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3485: error: `SwigMethods'
undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3485: error: `Py_InitModule'
undeclared (first use this function)
/opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:3486: error: `PyModule_GetDict'
undeclared (first use this function)
make: *** [sim-exe] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help