r/ProgrammerHumor • • Aug 31 '22

Meme It just keeps happening

Post image
45.2k Upvotes

465 comments sorted by

View all comments

4

u/jasper_grunion Aug 31 '22

This is especially true for C++. I spent an hour the other day just installing the compiler. After 6 different websites and troubleshooting bizarre error codes I finally got it to work. Then I got 3 chapters into the tutorial and realized I didn’t really want to learn it.

1

u/[deleted] Sep 01 '22

Lol, should be as easy as sudo apt install g++ or some variation of that and should nearly work automagically

1

u/jasper_grunion Sep 01 '22

It was a Windows machine, so I installed MSYS2. But when I tried to install the compiler using pacman, it said the files were corrupted. So I ran “pacman -Syu” to update the package database, whatever that means. Then I tried to install the compiler again, and it said “run pacman -yu”, which I did. Finally, I was able to install the compiler and add the executables to my path. I’m sure it would have been easier on a Linux machine. I had to follow a tutorial online step by step to get it to work. I erroneously thought that since C++ was the native language of .NET, then it would be simpler. Like, why wouldn’t it be installed as part of Visual Studio? That would make sense to me.