Can't Build program in Release Mode

I'm trying to build a project that transmits data via xbee in regular interval of time. So for this I used the uart and rtc functions of ev-cog-ad3029lz. This program works fine in debug mode. When trying to build in release mode it gives this error. I want my project work stand-alone without being connected to the pc. What should I do.?