Add extern
to the declaration in the header file.
extern int lettersArr[26];
(Also, unless you plan to change the array, consider also adding const
.)
The definition must have a type. Add int
(or const int
):
int lettersArr[26] = { letA, /*...*/ };