See the Getting Started instructions for windows: Configuring C Toolchain for Windows · stan-dev/rstan Wiki · GitHub