History and evolution of computer

How to Download AND setup mingw for c/c++ ?

   *****Here I will learn how to download mingw for c/c++*****

i have two way to download mingw.

this is first way.

click on this link "download msys2" and download msys2. now follow from second's way msys2 installation process or step.9.

This is second way.

step . 1.first of all open any browser and open this "http://mingw-w64.org" website. 

step . 2.your will seen something following interface.


step . 3.than click on downland button on your computer right-middle side.


step .4.than your computer screen looks like this.

step .5.Now scroll down and search Msys2 and click on it.
step .6.than your computer screen looks likes this.
step .7.click on GitHub link.
step .8.now click msys2-x86_64-20210725.exe under installation section. and download msys2 and install it.

            Here msys2 installation process

                Run the installer. MSYS2 requires 64 bit Windows 7 or newer.

                Enter your desired Installation Folder (short ASCII-only path on a NTFS volume, no                             accents, no spaces, no symlinks, no subst or network drives, no FAT)

            

            When done, tick Run MSYS2 now.
step.9.after installing msys2 open it and.

for update the package database type pacman -Syn than hit the enter button than hit y (take some time)

and again hit y button and close msys2 software.

step.10.now click on window start button and search msys and again open it.

Now type pacman -Su

 than enter than y button than close the terminal.

step.11.again click on start button and open (MSYS2 Mingw 64-bit)  or  (MSYS2 Mingw 32-bit) according to system architecture.

than type pacman -Ss gcc than hit enter button 

for 64-bit operating system, search mingw-w64-x86_64-gcc or Type pacman -S mingw-w64-x86_64-gcc

than hit the enter button than enter y button than wait some time and clear the terminal your gcc/g++ installation is complete.

after installation check gcc and g++ version by clicking gcc --version and g++ --version 

after that 

install debugger by some step

step1. pacman -Ss gdb than hit the enter button

step.2.than search mingw-w64-x86_64-gdb 10.1-2 or type pacman -S mingw-w64-x86_64-gdb than hit the enter button than y button than wait some time.

step.3.than check gdb version by clicking gdb --version

your installation process is now completed.

now we need add this directory c:\msys64\mingw64\bin in path environment variable

"c:\msys64\mingw64\bin" this path add under to your system variable path.

                You mingw installation process is completed.


Comments