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

Added missing header files #106

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from
Open

Conversation

AjinJayan
Copy link

@AjinJayan AjinJayan commented Jan 20, 2023

error: implicit declaration of function 'vTaskDelete' [-Werror=implicit-function-declaration]

error: implicit declaration of function 'usleep'; did you mean 'fseek'? [-Werror=implicit-function-declaration]
usleep(100000);

To resolve these errors header files were added to int_subscriber/app.c

#ifdef ESP_PLATFORM
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#endif

#include <unistd.h>

error: implicit declaration of function 'vTaskDelete' [-Werror=implicit-function-declaration]
error: implicit declaration of function 'usleep'; did you mean 'fseek'? [-Werror=implicit-function-declaration]
usleep(100000);

To resolve these errors header files were added
 
#ifdef ESP_PLATFORM
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#endif

#include <unistd.h>
@pablogs9
Copy link
Member

What about including it without the #ifdef ESP_PLATFORM and keeping those includes for all platforms?

@AjinJayan
Copy link
Author

yeah sure

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

Successfully merging this pull request may close these issues.

2 participants