Skip to content

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