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

User avatar
By RostakaGmfun
#22335 Hi there!
I've got problems compiling code based on SDK. Particularly, I've got compiler complains about stdint.h file.
The error:
Code: Select all/opt/Espressif/ESP8266_SDK/include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
 #if TENSILICA || 1
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:123:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:220:6: error: "__int_fast64_t_defined" is not defined [-Werror=undef]
 #if !__int_fast64_t_defined
      ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:308:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
/opt/Espressif/ESP8266_SDK/include/stdint.h:320:5: error: "__have_long64" is not defined [-Werror=undef]
 #if __have_long64
     ^
In file included from /home/rostyslav/Coding/kaa/client/client-multi/client-c/src/kaa/avro_src/io.c:17:0:
/opt/Espressif/ESP8266_SDK/include/inttypes.h:169:7: error: "__have_long64" is not defined [-Werror=undef]
 #elif __have_long64
       ^
/opt/Espressif/ESP8266_SDK/include/inttypes.h:223:7: error: "__have_long64" is not defined [-Werror=undef]
 #elif __have_long64
       ^
/opt/Espressif/ESP8266_SDK/include/inttypes.h:248:7: error: "__have_long64" is not defined [-Werror=undef]
 #elif __have_long64
       ^
In file included from /opt/Espressif/ESP8266_SDK/include/errno.h:9:0,



Hope anybody knows how to fix it.
Thanks in advance,
RostakaGmfun
User avatar
By jcmvbkbc
#22506
RostakaGmfun wrote:The error:
Code: Select all/opt/Espressif/ESP8266_SDK/include/stdint.h:83:5: error: "TENSILICA" is not defined [-Werror=undef]
...

Hope anybody knows how to fix it.

Though the header doesn't look particularly clean I guess the easiest fix would be not using -Werror in your compiler flags.