So I read ex0 in the book. It told me to watch the included videos on how to setup windows with the compiler. I can’t find the Ex0 video. I tried installing Cygwin myself but I don’t know which packages I should install. Can someone tell me which packages I should install? And why can’t I find the ex0 video?
Can’t answer your questions directly, but do try using Ubuntu with the Windows subsystem for Linux (WSL) instead of Cygwin. That should be a much better option these days. (The book is kinda old.)
Thanks. I think I’ll run a Ubuntu vm on my machine for learning C. Or I’ll try running WSL. So any idea about the ex0 video?
Yes a VM works too of course. WSL might be easier though if all you want is compile C programs. I think you can even connect Visual Studio Code to a WSL instance, that should give you a relatively smooth coding setup. VMs are always kinda laggy because of all the virtualisation overhead.
No idea about the video. Shoot Zed an email?
Well all I needed was the tools to compile the exercises. So I was thinking on using Cygwin. If I compile a program in WSL. Will it run on windows? That’s my only concern.
Not on Windows itself, but it will run in the WSL. WSL is much like a VM, except that it doesn’t emulate a complete system but runs “within” Windows.
I wanted it to run natively so that’s not possible with WSL. I think that’s something I shouldn’t care about while learning. Thanks for helping!
You can install ubuntu on wsl2 which is super easy here is the steps:
- Set Ubuntu on my Windows 10 machine following this guide Windows Subsystem for Linux Installation Guide for Windows 10
- Install the GNU compiler tools and the GDB debugger by using :
sudo apt-get install build-essential gdb
- Install Visual Studio Code.
- Install the Remote - WSL extension on VS Code.
And you are to go .