Contiki RTOS hello world失败

Contiki RTOS hello world失败,c,contiki,C,Contiki,您好,我正在尝试执行Contiki RTOS包中包含的示例程序。我尝试使用以下命令执行hello world程序:make TARGET=cooja clean,然后键入make TARGET=cooja,这在终端上产生了以下输出: I../../core/loader -I../../core/. -DAUTOSTART_ENABLE -c hello-world.c -o hello-world.co hello-world.c: In function ‘process_thread_he

您好,我正在尝试执行Contiki RTOS包中包含的示例程序。我尝试使用以下命令执行hello world程序:make TARGET=cooja clean,然后键入make TARGET=cooja,这在终端上产生了以下输出:

I../../core/loader -I../../core/. -DAUTOSTART_ENABLE -c hello-world.c -o hello-world.co
hello-world.c: In function ‘process_thread_hello_world_process’:
hello-world.c:52:3: warning: variable ‘PT_YIELD_FLAG’ set but not used [-Wunused-but-set-variable]
ld   hello-world.co contiki-cooja.a  -o hello-world.cooja
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094
contiki-cooja.a(log.o): In function `simlog':
/home/contiki/contiki-2.5/examples/hello-world/../../platform/cooja/sys/log.c:78: undefined reference to `strlen'
/home/contiki/contiki-2.5/examples/hello-world/../../platform/cooja/sys/log.c:83: undefined reference to `strlen'
/home/contiki/contiki-2.5/examples/hello-world/../../platform/cooja/sys/log.c:83: undefined reference to `memcpy'
/home/contiki/contiki-2.5/examples/hello-world/../../platform/cooja/sys/log.c:84: undefined reference to `strlen'
contiki-cooja.a(log.o): In function `printf':
/home/contiki/contiki-2.5/examples/hello-world/../../platform/cooja/sys/log.c:128: undefined reference to `vsnprintf'
make: *** [hello-world.cooja] Error 1
rm hello-world.co
root@ubuntu:/home/contiki/contiki-2.5/examples/hello-world# 

有人能告诉我我的流程哪里出了问题吗。我没有对原始示例代码进行任何更改,我打算让程序在COOJA模拟器上运行。谢谢

我可以看到您使用的是Contiki 2.5版,它非常旧。您应该尝试使用git存储库的最新版本或最新版本,即2.6。@errordeveloper感谢您提供的信息,我将把contiki从2.5版更新到2.6版,然后再试一次。。但请对我尝试执行make TARGET=cooja命令的方式发表意见。谢谢