When working with OpenGL, I encountered a number of errors:
The glut32.lib library cannot be opened.
2. Openg. DLL file missing
And so on.
After my debugging, I found two possible reasons. Please pay attention when debugging, it may be caused by these two reasons.
1.VS has two development platforms, X64 and Win32, I found that there are problems on X64 platform, first, there is no such error on Win32 platform, I guess it is because OpenGL is 32-bit.
I don’t know if OpenGL 64 is going to work, but I didn’t verify it, but you can verify it.
2. If there is an error in question 2, it may be that the lib library file in connector input is incorrect. I have tested it, and if it is changed to glu32.lib and glut32.lib, the error can be eliminated!
This is the problem I encountered in writing OpenGL, to give you a debugging idea.
The glut32.lib library cannot be opened.
2. Openg. DLL file missing
And so on.
After my debugging, I found two possible reasons. Please pay attention when debugging, it may be caused by these two reasons.
1.VS has two development platforms, X64 and Win32, I found that there are problems on X64 platform, first, there is no such error on Win32 platform, I guess it is because OpenGL is 32-bit.
I don’t know if OpenGL 64 is going to work, but I didn’t verify it, but you can verify it.
2. If there is an error in question 2, it may be that the lib library file in connector input is incorrect. I have tested it, and if it is changed to glu32.lib and glut32.lib, the error can be eliminated!
This is the problem I encountered in writing OpenGL, to give you a debugging idea.
Read More:
- Some configuration problems of OpenGL in VS2008
- Configuration of OpenGL in VS2010
- Problems encountered in vs2015 configuration using OpenGL environment
- Simple configuration of glfw + glad in vs2015 OpenGL development environment
- OpenGL environment configuration under VS2010 / vs2012 / vs2015
- On the configuration of OpenGL Red Book eighth edition environment in vs2013
- Vs2015 + OpenGL configuration method
- Vs2015 OpenGL environment configuration
- Vs2015 + OpenGL environment configuration
- Vs configuration of OpenGL development environment: configuration of glfw library and glad Library
- OpenGL class library and environment configuration under win10 and vs2015
- Construction of vs2015 OpenGL configuration environment
- (64 bit) OpenGL configuration + vs2017 + glew + glfw
- OpenGL Programming Guide 8th Edition 9th Edition vs2015 vs2017 configuration method
- OpenGL + vs2015 environment configuration problem solving
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- Configuration of OpenGL development environment under Windows environment, win10 + vs2019 + glfw + glad
- A series of problems in configuring OpenGL development environment in vs2015
- The solution of configuring OpenGL in vs2017
- Configuring OpenGL in Chinese version of VS2010 and problem solving