While working with aws iot sdk version 3.1.1 getting linking error
/aws_mqtt_agent.c:1884: undefined reference to
xQueueGenericCreateStatic'** **/aws_mqtt_agent.c:1887: undefined reference to xTaskCreateStatic’
While compiling the code for mqtt_ota_update_demo we are receiving this error.
We have made #define configSUPPORT_STATIC_ALLOCATION 1 in FreeRTOS.h and FreeRTOSConfig.h file. Still receiving this error.
Any help will be appreciated.
You have done the right thing by defining configSUPPORT_STATIC_ALLOCATION as that is the only constant needed to make the function available: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/master/tasks.c#L566
Please check you have it spelled correctly, and that the FreeRTOSConfig.h file you think you are including is the one that is actually being included (you can determine that simply by placing a #error message in the header file and make sure that breaks your build) - if no luck then try a complete rebuild. If you are still having a problem please post a link to the aws_mqtt_agent.c file you are using.