Steps To Install Code Blocks and Configure Glut
Steps To Install Code Blocks and Configure Glut
1. Download and extract the .rar file sent in the mail by Shankar.
2. Install code blocks through the setup found in the extracted folder, selecting all defaults.
4. Navigate to the directory where code blocks is installed. If you selected all default, then this should be
the path to find the installation directory:C:\Program Files (x86)\CodeBlocks . Proceed to the MinGW
folder and inside it, paste the folders copied in the previous step. It will ask for overwrite permission,
select YES for all. Also, provide admin permission to it if required.
6. Open wizard.script with some editor, then CTRL+f. In the 'find' pop-up window, search for glut32. You
will find 2 places in the file where there is a string: glut32. To be precise, on line 63 and on line 113.
Change the string glut32 to freeglut. Save the file. Provide admin permission if it asks for(it will definitely
ask you for it).
7. Now enable the file extentions(if not already enabled, ofcourse) in the windows explorer. Google it if
you don't know how to do it.
9. Search for glut.cbp in the templates folder and open it with some editor, then CTRL+f. In the 'find'
pop-up window, search for glut32. You will find 1 place in the file where there is a string: glut32. To be
precise, on line 20. Change the string glut32 to freeglut. Save the file. Provide admin permission if it
asks for.
10. Close everything (don't shut down your PC, please) and open Code Blocks.
14. Select the location where you want to save your projects and then click NEXT.
15. This window will appear,select browse button again and browse to this location to select GLUT's
location: C:\Program Files (x86)\CodeBlocks\MinGW. Or you can just copy paste this link into that
box.
16. Click Next and then Click Finish.
17. Double-click main.cpp to open the default source code. Then edit it and click f9 to run it.
Select Settings--->Compiler.
Select Toolchain Executables.
This should wrap up the most common errors and configuration is done as well. If you find any difficulty in