小编Ara*_*tty的帖子

如何为 WSL(Linux 的 Windows 子系统)安装 GCC 和 GDB?

我需要 gcc 来编译 ac 代码,但无法在 wsl 上安装 gcc。我试过了,sudo apt-get install gcc但没有用。这是错误。

hack@DESKTOP-VMQA3JB:~$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages …
Run Code Online (Sandbox Code Playgroud)

windows gcc gdb windows-subsystem-for-linux

3
推荐指数
1
解决办法
7721
查看次数

标签 统计

gcc ×1

gdb ×1

windows ×1

windows-subsystem-for-linux ×1