Hello Paul,
Thanks very much for your reply. You are correct: I get this problem when the MSVC toolset is set to LLVM (which I believe is related to the CLANG), and not when using the standard Microsoft Visual Studio 2019 compiler (in my case, v142).
I can of course use the MS compiler, no problem. However, I found that when using the LLVM compiler, the "non-ASM statement in naked function is not supported" statement is an Error, and so prevents the compiler from completing (and producing a .exe file). Actually, I don't have a solution in this case - even when the definition of the macro EW_UNUSED_ARG in ewrte.h (line 968) is commented out, the compiler still stops (with a different error message) and fails to complete.
Thanks for your interest!
Best regards,
Jonathan