Const char foo[] = "gives me an error"

Yes, I was thinking more of a pointer to non-constant data as @ PieterP mentioned.