I am trying to compile an OpenGL program using Visual Studio 2013, but I am getting the following error:
Error 1 error LNK1104: cannot open file 'freeglutd.lib' ...
For reference, I have FreeGLUT installed and configured VS to search for the correct directories for included files and library files. Indeed, VS recognizes that GLUT includes files just fine. I also added opengl32.lib and freeglut.lib to additional dependencies.
Why is VS looking for "freeglutd.lib"? It is definitely not listed in the additional dependencies. I can solve the compilation error by renaming "libglut.lib" to "libglutd.lib" and removing the first of the dependencies, but I'm just curious why it behaves this way.
Speaking of additional dependencies, is it really necessary to add opengl32.lib? I can compile my (very basic) program without it, but more than one person has stated that this is necessary, perhaps for older versions of Visual Studio?
source share