I can see having to close all cmd windows and Code::Blocks might solve a issue if you are using wxpack.
But, I have no idea why re-booting would be needed. Because wxPack defines environmental variables that wont be seen to exiting cmd and Code::Block.
Tim S.