The first time you compile and run an OpenGL program, you run into a bug that makes you crazy.
It looks like this:
A lot of search on the Internet, found that this is the first time to compile OpenGL program will meet the error. The solution is as simple as the #include< gl/glut.h> Preface it with a code like this:
Also note that the order of the code must be in #include< gl/glut.h> Before, can not error, otherwise still can not pass.
Read More:
- Summary of problems encountered in compiling opengl code
- Small problems encountered in compiling OpenGL under VS2010
- Record the problems encountered in OpenGL learning
- A strange problem in compiling OpenGL program
- Problems encountered in vs2015 configuration using OpenGL environment
- Problems and solutions in learning opengl
- OpenGL learning notes: Problems and Solutions
- Problems encountered in running OpenGL
- Summary of problems encountered in using OpenGL in QT
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered
- Summary of problems encountered by CodeBlocks + OpenGL
- Some problems and solutions in learning opengl in vs2017
- Problems encountered in configuring OpenGL development environment in vs2015
- OpenGL Usage Summary (including problems encountered and solutions)
- A series of problems in configuring OpenGL development environment in vs2015
- Some configuration problems of OpenGL in VS2008
- The first time I write OpenGL program, what should I do when I encounter “can’t open include file:” GL / glaux. H “: no such file or directory”?
- Learning notes — opengl01
- |-OpenGL – | some small problems about the glut Library
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake