This maybe isn't the exact answer you're looking for, but maybe the simple solution is to use a Linux compiler on Windows under WSL or Hyper-V. The Raspberry Pi Pico-series C/C++ SDK PDF suggests Ubuntu for the RISC V compiler. Ubuntu generally works well under both WSL and Hyper-V. Microsoft supply turnkey Ubuntu installs for both options.
Code:
PowerShell 7.4.5PS C:\Users\Murph> wsl --list --onlineThe following is a list of valid distributions that can be installed.Install using 'wsl.exe --install <Distro>'.NAME FRIENDLY NAMEUbuntu UbuntuDebian Debian GNU/Linuxkali-linux Kali Linux RollingUbuntu-18.04 Ubuntu 18.04 LTSUbuntu-20.04 Ubuntu 20.04 LTSUbuntu-22.04 Ubuntu 22.04 LTSUbuntu-24.04 Ubuntu 24.04 LTSOracleLinux_7_9 Oracle Linux 7.9OracleLinux_8_7 Oracle Linux 8.7OracleLinux_9_1 Oracle Linux 9.1openSUSE-Leap-15.6 openSUSE Leap 15.6SUSE-Linux-Enterprise-15-SP5 SUSE Linux Enterprise 15 SP5SUSE-Linux-Enterprise-15-SP6 SUSE Linux Enterprise 15 SP6openSUSE-Tumbleweed openSUSE TumbleweedPS C:\Users\Murph>
Statistics: Posted by Murph9000 — Sat Sep 28, 2024 9:28 am