Closed BillyTheSquid21 closed 9 months ago
Can you please provide full output from Step 2? You can paste it through GitHub Gist. As building on Windows with GCC/Clang, in general, is a bit tricky, the following info would be helpful:
Here is the output to step 2
Okay, based on the info I assume that you are using MinGW (32-bit), which was installed probably using mingw-get tool. Is this correct? At least with this version I was able to reproduce the problem. However, this version of MinGW is 10 years old, and, moreover, MinGW project is not in development anymore. Basically, the project is dead and outdated. The reason the compilation fails is due to the bugs in the header files supplied by MinGW. You can read a detailed problem explanation here. In short, the compiler does not properly include definitions of Windows error codes. You can potentially hack the headers, but there is no guarantee that you would not break something else.
I cannot fix this broken version of the compiler, but I can recommend you to switch to MinGW-w64 project which provides old and modern versions of GCC for Windows, both 32-bit and 64-bit builds. For example, if you still need GCC 6.3.0 (32-bit build), you can download a precompiled package here. This version works without any issues for me using the steps you have provided.
Another way to obtain a modern GCC (basically, MinGW-w64 builds) version on Windows is to use MSYS2 distribution which comes with a nice package manager. You can read about it also at the local Wiki.
Thank you! Switching to MinGW-w64 fixed the issue, I hadn't realised how old that MinGW version was
After cloning the repo, I call the following commands in windows from the repo directory:
The first two steps work fine, however the build step produces this error:
I haven't had a problem building in visual studio, so I'm unsure as to what is wrong here.