1. Under VS2017, the header file you need to include is <<; gl/glut.h>
GL/glut.h>
=
=
=
=
=
=
=
pch.h> Header files, to run a successful
and it will be included in the front, in & lt; gl/glut.h> PCH is a file that is automatically generated by the compiler when you create the project, called a precompiled file. Open PCH.H, and PCH.CPP, and find that there is nothing substantial in it.
for some references below:
(copyright statement: this article original articles for bloggers, follow BY CC 4.0 – SA the copyright agreement, please attach the original source links and reprinted in this statement.
the article links: https://blog.csdn.net/qq_37866732/article/details/83894909 is the beginning of your code without # include “PCH. H” the precompiled header.
H This header file can be put into your.h header file, and having #ifndef, #define, and #endif is to prevent you from linking to a certain header file again.
#ifndef PCH_H
#define PCH_H
// TODO: Add the header to precompile here
#endif //PCH_H
#endif //PCH_H
#endif //PCH_H
Attributes – & gt; Configure properties –>; C/C + + – & gt; Precompiled header –>; To the right of the precompiled header, select not to use the precompiled header and press OK. You can add pch.h without any errors.
)
Read More:
- Problems and solutions in learning opengl
- Write about the problems and solutions when configuring OpenGL in vs2015
- Android learning notes 03: some problems and solutions in the learning process
- OpenGL learning — problems encountered in compiling OpenGL program for the first time
- OpenGL learning notes: Problems and Solutions
- A series of problems in configuring OpenGL development environment in vs2015
- Some small problems in using vs2017
- Problems encountered in vs2015 configuration using OpenGL environment
- Problems encountered in configuring OpenGL development environment in vs2015
- Record the problems encountered in OpenGL learning
- Solutions to some problems encountered in programming with vs2017
- Some configuration problems of OpenGL in VS2008
- Small problems encountered in compiling OpenGL under VS2010
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Summary of problems encountered in using OpenGL in QT
- Configuration of OpenGL under CodeBlocks and solutions to problems encountered
- Some common problems in the use of vs2017
- Summary of problems encountered in compiling opengl code
- Configuring OpenGL in VS
- Some pitfalls in OpenGL learning