Goland软件出现 ignored by the build tool because of the OS mismatch

Goland软件出现 ignored by the build tool because of the OS mismatch
操作环境 win10 软件版本goland2022.3
尝试了多种结果无效

这个错误提示表明你正在使用 Windows 系统上的 Goland 软件,而你的代码可能是为其他操作系统编写的。

解决这个问题的一个办法是使用跨平台的编译工具,例如 GCC 或者 Mingw,来编译你的代码。这样可以确保代码能在 Windows 系统上运行。

另外,也可以考虑使用虚拟机或者容器来运行你的代码,这样就可以在 Windows 系统上运行其他操作系统的代码。

如果你想在win下编译linux/mac 代码,可以使用mingw-w64或者cygwin来解决。