Oops, sorry. I'm running on Vista and my version of Code blocks is 8.02.
Saturday night I compiled gtk code properly, but when I got on Monday and tried to compile the same code I got errors like the gtk header wasn't there. I used the wizard to set up gtk I thought.
I'll try what you said though. Thanks.