This is not a bootloader issue. If the code that you didn't post doesn't compile, there is no bootloader involvement