Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arnold-b opened this issue Jan 4, 2018 · 0 comments
Open

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

arnold-b opened this issue Jan 4, 2018 · 0 comments

Comments

@arnold-b
Copy link

arnold-b commented Jan 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant