Error installing CmdStan, invalid conversion from 'const'

I get 8.3.0:

U:\>g++ --version
g++ (Built by Jeroen for the R-project) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I am not using a custom build of CmdStan. Maybe there’s some kind of conflict with a previous installation?

Also, I tried doing this and I got these error messages:

image

image

Thanks!