The easiest and best way to do it is to have a virtual machine on your Windows and install Linux in it.
Once you have developed and tested your application on Windows, fire up your virtual machine Linux, and recompile the application there.
This way you can test in a real Linux before deploying, instead of just cross compiling and go back and forth at every problem.