How to get hex file from arduino files ?

Try this if using an lder version of arduino