How can I configure Emacs, such that I am able to compile files remotely on a Windows machine, while Emacs is running under Linux? I am using tramp via the smb method to edit files on the Windows machine, but I could not get remote compilation to work until now.
Disclaimer: I don't use MS Windows
Tramp's smb method is able to start processes on a remote MS Windows machine via winexe. Install it locally on your Linux machine, and adapt
tramp-smb-winexe-program if necessary. See also the Tramp manual
(info "(tramp) Remote processes").