Configuration of OpenGL under CodeBlocks and solutions to problems encountered

The configuration process:
Undefined reference to ‘_XX OpenGL function name ‘.
Add before include precompile directives that include OpenGL


If it still doesn’t work, add

#define _M_IX86  

There may also be warnings, which can be removed by the following code:


Modify the compilation and Makefile methods for undefined reference errors.

Read More: