reason:
Lack of header files and libraries for compiling OpenGL;
Solution:
1. Download OpenGL header files and libraries;
2. Put the file in the specified directory;
(1) Copy glaux.dll, glut32.dll and glut.dll to the C:/Windows/system32 directory. There should be opengl32.dll and glu32.dll in the system32 directory
(if the computer is a 64 bit operating system, copy it to the syswow64 folder in C:\windows, otherwise the prompt of “the computer loses the glut32.dll file” will appear during operation)
(2) copy GL. H, glaux. H, Glu. H and glut. H to the folder D:\software\vs2015\VC\include (Note: the directory where each person installs vs is different, and you can adjust it according to your own situation)
(3) copy glaux.lib, glu32.lib, glut32.lib, opengl32.lib and glut.lib to D:\software\vs2015\VC\lib folder
Note:
compile again. If there is still an error, change the original name #include <GL/glut.H > of the header file to #include <glut.H>.
Similar Posts:
- [Solved] VS winsock.h and ws2def.h a large number of redefined error
- fatal error C1010: unexpected end of file while…
- caffe35793;- 38382;- 39064;src/caffe/net. cpp:8 :18: fatal error: hdf5.h: No such file or directory compilation term…
- Solve the problem of link: fatal error LNK1104: unable to open the file “d3dx9. Lib”
- Cmake: How to Connect boost Library
- Error:Configuration with name ‘default’ not found.
- JDK 3 Error: has value ‘1.8’, but ‘1.7’ is required [How to Solve]
- zlib.h:no such file or directory
- Solutions to CP: organizing directory errors in Linux
- [Solved] Windows 10 remote error: Oracle fix due to CredSSP encryption