When I add pack_struct_end.h and compile my code without any of my functions - just FreeRTOS provided code I get over 100 errors.
A lot of the errors seem to be along the lines of
Error[Pe065]: expected a “;” ProjectDirectory\Middlewares\Third_Party\FreeRTOS-Plus\Source\FreeRTOS-Plus-TCP\include\FreeRTOS_IP.h 170
or
Error[Pe020]: identifier “___ inline” is undefined ProjectDirectory\Middlewares\Third_Party\FreeRTOS-Plus\Source\FreeRTOS-Plus-TCP\include\FreeRTOS_IP.h 170
Eclipse did the same thing to me. It would flag all the places where the “;” was supposed to be, but was located in the pack_struct_end.h file so it wasn’t recognized. I added an extra “;” before ‘typedef’. It doesn’t cause bad code, and get’s rid of the error.
Are these actual compiler errors? If so, please paste a few into the
forum. Somebody mentioned Eclipse previously, are you using Eclipse of
Embedded Workbench? Eclipse will try and parse C code itself and
display lots of errors in the IDE because it’s not very good at it - but
those are not compiler errors, or indeed anything to do with the
compiler and can be ignored (or you can tell Eclipse not to do it in the
project or workspace options).
Compiler errors will appear in the console out window. You will see the
compiler’s command line being called to build a file, then the errors
and warnings output when building that file, before moving onto the next
file. The compiler’s hap hazard attempt at parsing C code generates
warnings and errors visible in the left margin of the editor window -
nothing to do with the running of the compiler or the output of the
compiler.