The data declaration of the *.h file is:
_ extern const char *contestExchanges[];_
The definition of the array is given my original post.
@Bulldog: That seems to be almost the same thing. I tried it and it does not work, either. I get:
_ error: invalid application of 'sizeof' to incomplete type 'const char* []'_
- static int count = NUM_ELEMENTS(sizeof(contestExchanges), sizeof(contestExchanges[0])) - 1;*
Also, I still don't know why is works with the function in the *.ino file, but not in the *.cpp file.