#How to install GCC compiler in windows

5:12 PM

#How to install GCC compiler in windows


So are you bored of using the turbo C/Dev C compiler in windows? 
in this tutorial I will show you how you can install the GCC compiler in your windows platform which is basically provided by codeblocks. So, follow me step by step.


  • First of all you need to download the gcc compiler provided by codeblocks. So click the download button below, and download the file.

  • Now double click the installed file when your download is completed. Follow the procedures one by one and install it. Then check the steps below.



  • When you are done installing then goto your C drive->open program files(x86)->Codeblocks->MinGW->bin . Then copy the address of the path as shown in the diagram.




  • Now right click on your my computer/this pc and click properties.



  • Here click on Advanced system settings boxed in the diagram and when the window open click on Environment variables..




  • Now click on New... boxed in the diagram. Then type the variable name as Path and paste the address you copied earlier in the variable value section. Then press Oks and you are done installing the compiler.
Now, I will show you how to use the compiler. So open your notepad and type any C code. I have typed the easiest one to just show you. Then save your file with a name like example.c (make sure to put .c at the end). I have saved it on desktop.



Ok so I saved it with the name adispark.c 
Now open command prompt->then goto the directory where you have saved the file(for me it's desktop)
Now to compile your code type : gcc filename.c        (for me gcc adispark.c) and press ENTER
Now to run your if there are no error then type : a.exe   and press ENTER

See, it's working. Well, personally I don't like using notepad as an editor for programming. I use notepad++ which is a cross platform IDE and trust me when you code using that it really feels good. So, if you want to download notepad++ too then click below : 

                                            CLICK HERE TO DOWNLOAD NOTEPAD++

After you are done downloading just install and use it similarly as you do use notepad. For any other help just give me feedback down there in the comment section.







Share It

Related Posts

Previous
Next Post »