Never mind this post. I don't know what happened but it is working like it should now, even using the prefix form. I probably forgot to save before recompiling or something.

Glad to realize it was human stupidity and not compiler error because Code::Blocks certainly is excellent.

Thanks for the replies.