Executing code on a windows machine

20 views
Skip to first unread message

John Mertus

unread,
Mar 22, 2022, 11:31:14 AM3/22/22
to Compiler Explorer Discussion
I downloaded the most recent version of CE (gh-2187) and followed the doc instructions in  WindowsNative.md.  After changing the VS2017 directories, CE starts ups locally and compiles VS2017 fine. I then added I added 2022 support

The problem is the EXECUTE THE CODE button is always disabled (VC2017, VC2022).
 added the lines
compiler.vc2022_64.supportsExecute=true
compiler.VC2022_64.includePath = C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt

compiler.vc2022_64.libPath=C:\Program Files (x86)\Windows Kits/10/Lib/10.0.17134.0/um/x64;C:\Program Files (x86)\Windows Kits/10/Lib/10.0.17134.0/ucrt/x64;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64

Alas when I go to "Execute code" on the web page output dropdown,, the menu item is not enabled under any browser I tried (Firefox, Chrome)

There is a comment about executionWrapper, but no explanation of it.  Since I'm on a windows machine, I don't think I need it.

I also enabled debugging but the output was unreadable (to me)

This is a little terse, but any ideas?  Do you have a c++.local.properties that should enable execution that I can look at?

 (Side note If i choose clang I get
clang++: error: no such file or directory: '/nologo'
clang++: error: no such file or directory: '/FA'
clang++: error: no such file or directory: '/c'
clang++: error: no such file or directory: '/FaC:\Users\john.mertus\AppData\Local\Temp\compiler-explorer-compiler2022218-12892-12e0qjv.gjq5\output.s'
clang++: error: no such file or directory: '/FoC:\Users\john.mertus\AppData\Local\Temp\compiler-explorer-compiler2022218-12892-12e0qjv.gjq5\output.s.obj'
Compiler returned: 1

Any idea why this is?  A configuration issue with my windows machine?  Thanks

-jam

PS: I want to use it as a teaching tool but the latency with Amazon is quite variable and sometimes even times out. The local CE sppears fast and predictable.


Reply all
Reply to author
Forward
0 new messages