在Windows上运行Linux上编译的代码。

huangapple go评论69阅读模式
英文:

Running compiled code for linux on windows

问题

所以我在Windows 10上将Go代码交叉编译为Linux,并且实际上能够在Windows和Linux上运行相同的可执行文件,这是如何可能的?

英文:

So I cross-compiled Go code on Windows(10) for Linux and I was actually able to run the same executable on both Windows and Linux how is that possible?

答案1

得分: 2

那就是新的Windows子系统(Windows Subsystem for Linux,简称WSL),它可以在Windows 10上原生运行Linux ELF二进制文件。

英文:

That'd be the new Windows Subsystem for Linux (WSL) that can run Linux ELF binaries natively on Windows 10.

huangapple
  • 本文由 发表于 2016年12月30日 00:48:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/41383851.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定