Step 5: Again, open the extracted folder(from step2) and go inside “lib” and copy all of it’s contents, after that go to your CodeBlocks installation folder and open “MinGW > lib” then paste the copied “.glut “and “.a” files. For me it’s “C:\Program Files (x86)\CodeBlocks\MinGW\lib”
Step 6: Again, open the extracted folder(from step2) and go inside “GLUT DLL” folder and copy all of it’s content and paste it inside “C:\Windows\SysWOW64” (this is the most important part if done incorrectly you may get a missing glut.dll file error while compiling, thanks to Aayush Raut for finding out this trick to avoid missing glut.dll error).
Step 7: Open CodeBlocks and
- Click on “setting > compiler”