How can I get the .hex and .cpp files of my project?

I have no urgent need for those files now, but out of curiosity I wanted to see what my code looks in proper C++. And hex-file is useful if I ever use an external programmer.

Hi,
you can find them by following the first part of the procedure here -

Duane B

rcarduino.blogspot.com

Interesting, thanks

I found the .cpp file in \Local Settings\Temp\ folder, but in it there was no main().

main.cpp:

#include <Arduino.h>
int main(void)
{
	init();
#if defined(USBCON)
	USBDevice.attach();
#endif
	setup();
 	for (;;) {
		loop();
		if (serialEventRun) serialEventRun();
	}
	return 0;
}

Found it finally, thanks.

Arduino.h was interesting too.