Contact: Nicole Mazzuca
The setup on Windows should be fairly trivial: the only prerequisite is node. If you haven't yet installed node yet, you can grab it from here; get the Windows LTS release.
Once you've done this, and added npm
to the path, run the following commands from any command line, in the directory you want the Compiler Explorer (from here on, CE) to live:
git clone https://github.com/mattgodbolt/compiler-explorer.git
Then, we'll need to make a configuration file which points at your compilers and include directories. Copy docs\WindowsLocal.properties
to a new file, etc\config\c++.local.properties
, and edit it, following the instructions in the comments. If you have any questions, please ping me on discord.
Once you've finished setting it up, you can cd
into the compiler-explorer
directory, then run
npm install yarn
node_modules\.bin\yarn install
node_modules\.bin\yarn start
Eventually, you'll see something that looks like
info: ======================================= info: git release 96451ae8b92e420462137eaaec58f78d3cd6667b info: serving static files from 'static' info: Listening on http://localhost:10240/ info: =======================================
Now point your favorite web browser at http://localhost:10240 and you should be done!
You only have to run yarn install
the first time; every time after that, you should just be able to run yarn start
.
To create executables with Visual C++, it's required to install the Windows SDK.
You can find the Windows 10 SDK here
When you‘ve installed the SDK, you’ll need to setup the library and include paths in Compilers Explorer. Make sure that in the previously discussed c++.local.properties you have added at least:
If needed, you can set in your properties file: supportsExecute=true
For binary mode, you will need a Windows version of Objdump. There are various versions of MingW available that will offer binutils including objdump.
The version of objdump that we have tested with is shipped with MingW-64, you can find it for download here
When you use the installer for MingW-64, make sure you select the right architecture during installation.
When you use the zipped version, after unzipping you will need to add the bin folder to your Windows PATHS environment variable.
When you have everything installed, you can add to your properties file the following:
supportsBinary=true objdumper=mingw path/mingw64/x86_64-w64-mingw32/bin/objdump.exe
Note that the 32 bit version of MingW does not support 64 bit binaries.