mingw

MinGW cannot find pthread

I’ve been trying to build rust on Windows for a while now, and it keeps failing. The build was failing at first due to this issue, but apparently running make after that should succeed. In my case however, it would fail again, and again, with an error ld.exe: cannot find -lpthread. I searched high and low for someone else with the same error, but most people were having undefined references in pthread since they were linking the library before linking the object file that actually references pthread.

MinGW doesn't support forking

I realized a while back that I learn a new language best when I work on an actual program on it, as opposed to just following tutorials and reading books. So, I decided to look around for a fun program to write in order to learn rust. Back in college, as part of a network programming class, I was tasked with writing a rudimentary shell, and I can remember how much fun it was, so I decided to write a basic shell in rust.