I just compiled it in code::blocks with no problem

Have you got any other projects open at the same time that could be getting compiled by accident instead?