CHERTS / esp8266-devkit

Unofficial Development Kit for Espressif ESP8266
http://www.programs74.ru
GNU General Public License v3.0
261 stars 102 forks source link

Samples: Can´t compile the C++ Sample #48

Open arnold-b opened 6 years ago

arnold-b commented 6 years ago

Hello and sorry.

I didnt find any way how i can compile the C++ samples under Windows + Eclipse. It´s always taking the gcc compiler but not gcc++

c:/Espressif/ESP8266_SDK/include/osapi.h:67:6: note: previous declaration with 'C++' linkage void ets_timer_setfn(os_timer_t ptimer, os_timer_func_t pfunction, void parg); ^ user/user_main.cpp:28:86: error: conflicting declaration of 'void ets_timer_arm_new(ETSTimer, uint32_t, bool, bool)' with 'C' linkage void ets_timer_arm_new(ETSTimer ptimer,uint32_t milliseconds, bool repeat_flag, bool); ^ In file included from user/user_main.cpp:6:0: c:/Espressif/ESP8266_SDK/include/osapi.h:65:6: note: previous declaration with 'C++' linkage void ets_timer_arm_new(os_timer_t ptimer, uint32_t time, bool repeat_flag, bool ms_flag); ^ ../common_cpp.mk:351: recipe for target 'build/user/user_main.o' failed mingw32-make.exe: *** [build/user/user_main.o] Error 1

21:15:23 Build Finished (took 6s.960ms)

thanks