Color is declared as having 7 elements of type char, a char holds 1 character, now count how many chars you're trying to fit in color. I'd use a vector of strings.
Color is defined as having 7 elements of type char
No, color is defined as having 7 elements of type char*, which can hold an array of characters, or a string of sorts.
@OP
What is the compiler saying? It looks like your constructor declaration and definition don't match:
In the class declaration: fcBar(int a); //single-arg constructor
When the constructor is defined: fcBar::fcBar() //no-arg constructor
Unless you didn't post the no-arg declaration, and the definition for the one with the int argument, I don't see anything else in the code you posted. Maybe post all of the code?
fcBar/fcBar.h:24: error: a brace-enclosed initializer is not allowed here before '{' token
fcBar/fcBar.h:24: error: ISO C++ forbids initialization of member 'color'
fcBar/fcBar.h:24: error: making 'color' static
fcBar/fcBar.h:24: error: invalid in-class initialization of static data member of non-integral type 'char* [7]'
is what I want
char color[7][2]. I tried to look up the brace initialization referenced above, but couldn't find anything specific enough.