1

I'm looking for an online IDE/compiler which supports C++/CLI. I've been hunting around and can't seem to find one:

Please feel free to move this to a more appropriate Stack Exchange site if Software Recommendations is not the right place for it

0

The key here is to find some service that supports MSVC and then compile with the /clr flag. Of course other compilers may also work fine if they have C++/CLI frontend, but currently cl.exe is the only choice. Luckily rextester does have MSVC and can also run .NET binaries. Just add /clr to compile C++/CLI code. See demo:

C++/CLI program in rextester


If you just want to see the output assembly then things are much easier because you don't actually need the runtime environment, just a proper compiler. You can use Compiler Explorer, select one of the MSVC compilers then prepend /EHa /clr to the options and see. The /EHa is necessary to override the default /EHs

Demo:

C++/CLI assembly output on Godbolt

In fact Compiler Explorer supports running binary and also has wine but I don't know why the execute option was disabled for exe files

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.