Informatics - Compiling C++ Program - Try to Download the MinGW by Watching Youtube Tutorial (week 4)

Hi everyone, in this blog I will share my experience of how compiling c++ program in windows. This is my informatics school project.  The result of the program is I can calculate simple rate interest and compound rate interest. In the first week I'm trying to compile it in the visual studio code, but unfortunately my step is wrong, so the program is error. it stated that there is no such file in my directory. Which means my computer have no idea about the program. 

In windows, to compile the c++ program we need to have MinGW as a compiler and insert it to our computer environment. And at that time, I didn't have it. So, I decided to download the MinGW first. To download it I open the YouTube and search of how installing the MinGW compiler in windows. 

I was following this YouTube tutorial to install MinGW to build C++ code



So, from this video the first step you need to do is download the latest installer from the MSYS2 page. After successfully installing the MSYS2 Installer there will be a prompt with a screen to install the compiler. In this screen you must run the following command (pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain) then accept the default by pressing enter 'y' when prompted and successfully install all the necessary dependencies. 

My problem is there is a something wrong when I'm installing the compiler. Some of the packages that should be downloaded are failed to download. I have tried to repeat the step but still I can't download some of the packages. Because of that, I decided to follow another tip. Are you curious? go to the next section. See ya!

Komentar

Postingan populer dari blog ini

Informatics - Making a Main C++ Program to Run all the Calculator Program (week 11)

Informatics - Triangles (week 18)

Informatics - Making Minimarket Discount Program in C++ version 1 (Week 12)