ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Tinamore
#18591 Hi
I Copy the folder and files required from C:\Espressif\examples\esphttpd to C:\Espressif\examples\esp_mqtt.
I am build all in elipse luna, but IDE show error:
----
17:32:30 **** Build of configuration Default for project esp_mqtt ****
mingw32-make.exe -f C:/Espressif/examples/esp_mqtt/Makefile all
CC driver/uart.c
CC user/cgiwifi.c
In file included from c:\espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\4.8.2\include\stdint.h:9:0,
from include/espmissingincludes.h:4,
from include/esp8266.h:17,
from user/cgiwifi.c:15:
c:\espressif\xtensa-lx106-elf\xtensa-lx106-elf\include\stdint.h:80:20: error: conflicting types for 'int32_t'
typedef signed int int32_t;
^
In file included from include/esp8266.h:8:0,
from user/cgiwifi.c:15:
c:/Espressif/ESP8266_SDK/include/c_types.h:17:29: note: previous declaration of 'int32_t' was here
typedef signed long int32_t;
^
In file included from c:\espressif\xtensa-lx106-elf\lib\gcc\xtensa-lx106-elf\4.8.2\include\stdint.h:9:0,
from include/espmissingincludes.h:4,
from include/esp8266.h:17,
from user/cgiwifi.c:15:
c:\espressif\xtensa-lx106-elf\xtensa-lx106-elf\include\stdint.h:81:22: error: conflicting types for 'uint32_t'
typedef unsigned int uint32_t;
^
In file included from include/esp8266.h:8:0,
from user/cgiwifi.c:15:
c:/Espressif/ESP8266_SDK/include/c_types.h:15:29: note: previous declaration of 'uint32_t' was here
typedef unsigned long uint32_t;
^
C:/Espressif/examples/esp_mqtt/Makefile:396: recipe for target 'build/user/cgiwifi.o' failed
mingw32-make.exe: *** [build/user/cgiwifi.o] Error 1

17:32:31 Build Finished (took 339ms)
----

I want to implement esphttpd in to esp_mqtt. Can every one help me fix this error ?. Thanks.