I run codeblocks and as long as I select new project and build the example or my project straight away, it works when I try to push it to the Arduino. However if I save the project and reopen it I get "Error code:1 Error generating HEX file" from Arduino Builder. Even when using the code that compiled and went fine when codeblocks was first launched.
I'm using GNU AVR compiler and codeblocks 12.11 on a windows 7 machine. Like I said everything works fine until I try to upload to the Arduino but only for saved projects. New projects will work and the hex is sent properly but just once.