The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
Those will affect on new projects. For your current project, right click project name on the left pane(under Manager->Projects tab) and select Build Options.
#include "contiki.h"#include <stdio.h> /* For printf() */void ssi0_isr(){}/*---------------------------------------------------------------------------*/PROCESS(hello_world_process, "Hello world process");AUTOSTART_PROCESSES(&hello_world_process);/*---------------------------------------------------------------------------*/PROCESS_THREAD(hello_world_process, ev, data){ PROCESS_BEGIN(); for(int i=0; i < 10; i++) { printf("Hello, world\n"); } PROCESS_END();}
||=== Build: Debug in link_v1 (compiler: GNU GCC Compiler for ARM) ===|test_cpp_v1.c||In function 'process_thread_hello_world_process':|test_cpp_v1.c|16|error: 'for' loop initial declarations are only allowed in C99 mode|test_cpp_v1.c|16|note: use option -std=c99 or -std=gnu99 to compile your code|..\..\Makefile.include|234|recipe for target 'test_cpp_v1.co' failed|||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Code..\..\Makefile.include|234|recipe for target 'test_cpp_v1.co' failed|
..\..\Makefile.include|234|recipe for target 'test_cpp_v1.co' failed|
#DEFINES+=PROJECT_CONF_H=\"project-conf.h\"-std=c99all: test_cpp_v1APPS=servreg-hackCONTIKI=../..UIP_CONF_IPV6=1#SERVER_REPLY=1CFLAGS+= -DUIP_CONF_IPV6_RPLifdef WITH_COMPOWERAPPS+=powertraceCFLAGS+= -DCONTIKIMAC_CONF_COMPOWER=1 -DWITH_COMPOWER=1 -DQUEUEBUF_CONF_NUM=4endififdef SERVER_REPLYCFLAGS+=-DSERVER_REPLY=$(SERVER_REPLY)endififdef PERIODCFLAGS+=-DPERIOD=$(PERIOD)endifinclude $(CONTIKI)/Makefile.include
...So if you want to have any success in what you're doing - start reading on Makefiles, compilers, linkers and so on.