You generally should NOT do this (declare a variable) in a header. If you do, you will potentially create multiple copies of the same variable (one in each .c file that includes menus.h in this case)Code:/* menus.h */ ... menuOPS op_splash = {4, { "string1" , "string2" , "string3" , "string4" } }; ...
I'm not sure you showed enough of the code to generate the error you are seeing. Why not create the minimum set of files that does and provide these? Don't make us guess.