Hello Mgimenez
Here is my source code:
#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();
}
Here is compiler log:
||=== 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)) ===|
Here is Compiler settings -> Other options (please see the snapshot).
Best Regards
Pavel
P.S. I also tried with -std=c99 ... the same result