Closed adammoody closed 5 years ago
With VELOC_MAX_NAME in veloc.h defined as a size_t variable rather than a #define, I'm getting the following error when trying to declare an array.
[100%] Building C object src/CMakeFiles/scr_o.dir/scr2veloc.c.o /usr/workspace/wsb/moody20/projects/scr2veloc/src/scr2veloc.c:24:13: error: variably modified 'current_name' at file scope static char current_name[VELOC_MAX_NAME] = ""; ^~~~~~~~~~~~
Switched from const to define. This should fix it.
With VELOC_MAX_NAME in veloc.h defined as a size_t variable rather than a #define, I'm getting the following error when trying to declare an array.