I thought I'd document my progress trying to build a program for GCW Zero using the new built-in Ubuntu subsystem in Windows 10, as a replacement for dmitry_smagin's cygwin toolchain, which can be found here: http://boards.dingoonity.org/gcw-development/gcw-zero-toolchain-for-windows-(cygwin)-2013-10-04/Why?
So you can develop your game or app using an IDE of your choice, under Windows, like Visual Studio, Visual Studio Code or CLion. When it's time to compile to GCW0, open the new Bash, cd to your project folder ( /mnt/c/projects
or wherever you put your code ) and compile it from there.
It is doable, but:The regular toolchain will not workhttps://github.com/Microsoft/BashOnWindows/issues/390
WSL currently does not support running x86 executables, so the GCC compiler will fail. This can probably be solved by compiling the toolchain to amd64 - I had limited success yesterday trying to compile with a toolchain that was sent to me by com64 on the IRC. It succeeded with the compilation of a simple hello world program, but failed to link SDL due to absolute paths in the toolchain I used. I suspect that if I compile my own toolchain, this issue will disappear.
It works with a 64-bit toolchain. Forum user pcercuei compiled one and posted a link further down in this thread.
Just download the tar.bz2 file, untar it in Bash, and place the resulting folder inside /opt/ and you should be good to go!