Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By boris_blackmilk
#7398 Hi all,

Tried the "Blinky" example compile after fixing all of the paths into the SDK and GCC in the Makefile, and got these errors:

Code: Select allesp8266@esp8266-VirtualBox:/opt/xtensa-lx106-elf/source-code-examples/blinky$ sudo make
CC user/user_main.c
user/user_main.c:9:1: error: unknown type name 'os_event_t'
 os_event_t    user_procTaskQueue[user_procTaskQueueLen];
 ^
user/user_main.c:10:27: error: unknown type name 'os_event_t'
 static void user_procTask(os_event_t *events);
                           ^
user/user_main.c:32:15: error: unknown type name 'os_event_t'
 user_procTask(os_event_t *events)
               ^
user/user_main.c: In function 'user_init':
user/user_main.c:63:20: error: 'user_procTask' undeclared (first use in this function)
     system_os_task(user_procTask, user_procTaskPrio,user_procTaskQueue, user_procTaskQueueLen);
                    ^
user/user_main.c:63:20: note: each undeclared identifier is reported only once for each function it appears in
make: *** [build/user/user_main.o] Error 1
esp8266@esp8266-VirtualBox:/opt/xtensa-lx106-elf/source-code-examples/blinky$


Just was wondering what had gone wrong? Any pointers most welcome!

Many thanks in advance for your help!

Shane.