How to compile C programs using WSL

preview_player
Показать описание
I've seen a multiple of my classmates having trouble installing a C compiler into their system which is why I decided to make a simple tutorial out of it. I'm sorry for my voice, I'm sick and I can't speak properly.

Commands used:
apt-get update
apt-get install gcc -y
apt-get install make -y
Рекомендации по теме
Комментарии
Автор

Thanks, I couldn't find any other video explaining this.

nwanji
Автор

I am up to the point you are bringing up 'Ubuntu'.

I would like to know: Considering wsl is installed anyway, is there a way to compile .c files without needing to download anything?

I would like to practice programming and compiling, internet and download free.

ryarod
Автор

If i type make it changes to the windows terminal

BoiSandro
Автор

But I already have gcc installed on windows 10 ! Still will I need to install in wsl ?
Why can't it use system variable gcc already set in windows 10 that I installed ? or it can ?

siddharthmishra
Автор

there's no open linux shell here button

lightbombs