When compiling in emacs in linux i can not run the .exe in windows, though i can in Linux.

How do i compile a .c program to run in Windows?

And likewise when compiling in Dev-C and trying to run the .exe in Linux it doesn't work.

Any help would be grateful