Windows 10 Anniversary Update includes the Linux Subsystem for Ubuntu. I installed gcc with sudo apt-get install gcc.
sudo apt-get install gcc
I wrote some simple C code for tes
If you compile using gcc on linux it will produce an ELF file not a PE (what windows understand) file
To compile a program for windows inside linux you can use mingw.