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

esp_task_wdt.h doesn't have C++ calling convention (GIT8266O-437) #866

Open
awander opened this issue Apr 11, 2020 · 0 comments
Open

esp_task_wdt.h doesn't have C++ calling convention (GIT8266O-437) #866

awander opened this issue Apr 11, 2020 · 0 comments

Comments

@awander
Copy link

awander commented Apr 11, 2020

When "components\esp8266\include\esp_task_wdt.h" is included in C++ code and 'esp_task_wdt_reset()' is called, it leads to a link error of "undefine reference to 'esp_task_wdt_reset()'" !

Insert following code should resolve this error:

#ifdef __cplusplus
extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif
@github-actions github-actions bot changed the title esp_task_wdt.h doesn't have C++ calling convention esp_task_wdt.h doesn't have C++ calling convention (GIT8266O-437) Apr 11, 2020
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