For C everything is same except the compiler will be G, not gcc.But its clear and easy if you proceed one step at a time and do whatever is said in this tutorial.Do look at those if you are finding any steps difficult to complete.If you find this helpful so then please visit our channel and subscribe.
Gcc For Windows Windows 10 Then ThereSame exact steps are shown there in the video - If you are using windows 10 then there might be some problem executing the program. Gcc For Windows Download Step 1Add Tip Ask Question Comment Download Step 1: Download the Editor ( Notepad ) You can use any editor you want to write and save your code. If you have doubt then please refer to screenshots given here. Gcc For Windows Download Will StartA new page will pop up and the download will start after some seconds. The downloaded file name will be mingw-get-setup.exe Open the installer and click on Install. For our purpose check the mingw32-gcc-g package and click on installation in the upper left corner. When it is done and it displays all changes were applied successfully. To confirm that everything is done correctly just go to c:MinGWbin There you should find both G and Gcc compiler. Add Tip Ask Question Comment Download Step 3: Add Path Variables Copy the address of the bin folder. Click on edit. In variable value, give a semicolon (; ) at the end and then paste the address of the bin folder that was copied earlier. Add Tip Ask Question Comment Download Step 4: Write the Program Now you can write any c or c program as you want. For C programs the extension will be.c and.cpp for C programs. I am giving one of each C and C programs here. So just to try download then and paste it directly in the bin folder or in a subfolder in bin. If you cant do it then just Go to the upper left corner and click on File. Select open command prompt and cmd window will appear on screen. Now if have pasted the codes inside a subfolder in bin, then type in cd ( exclude ) and enter. If you have just pasted the code directly in bin, dont need to do anything. To compile C program type gcc and then type in the program name with the.c extension ( because gcc complies C programs ) with a space in between. Press Enter. Wait for some seconds before the same directory name comes again in the cmd screen. That is gven the code and that means everything has been done correctly.
0 Comments
Leave a Reply. |