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

Don't know. It's just one of those things where I shrug and comply.