-->
Page 1 of 1

Troubles with stdint.h

PostPosted: Fri Jul 03, 2015 5:32 am
by RostakaGmfun
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

Re: Troubles with stdint.h

PostPosted: Sun Jul 05, 2015 2:29 pm
by jcmvbkbc
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.

Re: Troubles with stdint.h

PostPosted: Mon Jul 06, 2015 3:05 am
by RostakaGmfun
jcmvbkbc wrote:Though the header doesn't look particularly clean I guess the easiest fix would be not using -Werror in your compiler flags.

Thanks a lot, already fixed :)

Re: Troubles with stdint.h

PostPosted: Thu Jul 09, 2015 6:24 am
by eriksl
How?

I use stdint.h all of the time, no problems. Looks a bit like your gcc/build environment didn't install correctly.