Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22304

How to install GCC and GDB for WSL(windows subsytem for linux)?

$
0
0

I need gcc to compile a c code and unable to install gcc on wsl. I tried sudo apt-get install gcc but it doesn't work. This is the error.

hack@DESKTOP-VMQA3JB:~$ sudo apt-get install gccReading package lists... DoneBuilding dependency treeReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: gcc : Depends: gcc-9 (>= 9.2.1-1~) but it is not going to be installedE: Unable to correct problems, you have held broken packages.

I don't know the dependencies to install. Please help me with gdb also. thankyou.


Viewing all articles
Browse latest Browse all 22304

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>