contiki-os / contiki

The official git repository for Contiki, the open source OS for the Internet of Things
http://www.contiki-os.org/
Other
3.71k stars 2.58k forks source link

cooja simulation error #830

Closed sunnyzhuhai closed 9 years ago

sunnyzhuhai commented 9 years ago

How to fix this cooja simulation error:

CC ../../../platform/sky/./contiki-sky-main.c ../../../platform/sky/./contiki-sky-main.c: In function ‘main’: ../../../platform/sky/./contiki-sky-main.c:360:3: error: ‘NETSTACK_LLSEC’ undeclared (first use in this function) ../../../platform/sky/./contiki-sky-main.c:360:3: note: each undeclared identifier is reported only once for each function it appears in make: *\ [obj_sky/contiki-sky-main.o] Error 1 rm udp-server.co Process returned error code 2

Thanks!

cmorty commented 9 years ago

This is NOT(!) a Cooja error, but a compilation error. And you fix it by defining NETSTACK_LLSEC