Error[Pe1066]: declaration of struct “xSTATIC_QUEUE” had a different meaning during compilation of “…\Middlewares\Third_Party\FreeRTOS-Plus\Source\FreeRTOS-Plus-TCP\portable\BufferManagement\BufferAllocation_2.c” C:\Users\StephensKa\Documents\Combined Pulsed\Firmware_local\trunk\Middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h 1046"
struct “xSTATIC_QUEUE” (declared at line 1046) (from translation unit “…\trunk\Src\main.c”)
struct “xSTATIC_QUEUE” (declared at line 1046) (from translation unit “…\trunk\Middlewares\Third_Party\FreeRTOS-Plus\Source\FreeRTOS-Plus-TCP\portable\BufferManagement\BufferAllocation_2.c”)
detected during compilation of secondary translation unit “…\trunk\Src\main.c”
However when I search the code for xSTATIC_QUEUE I only find 1 instance of it.
xSTATIC_QUEUE is defined in a header file, so it might be something to
do with the order in which header files are being included.
BufferAllocation_2.c is one of our files, so hopefully the header files
are correct. Could you please post the part of your main.c file that
includes the header files.
I haven’t added any of my own files, I generated code with STM32CubeMX and then added the FreeRTOS+TCP files to the project - should I be including the FreeRTOS files in main.c?
I found a second FreeRTOSConfig.h in my files that wasn’t included in the project and removed it but thats created linker errors with BufferAllocation_2.c