Build Errors on Visual C++

Hi
This is my first attempt to program in Opengl. I have all the necessary .lib, .dll and header files in the lib,System32, and inlcude folders respectively(I am using Visual Studio 6.0 Pro). My program compiled fine but I got this error during build.

Linking…
example1.obj : error LNK2001: unresolved external symbol ___glutInitWithExit@12
example1.obj : error LNK2001: unresolved external symbol ___glutCreateWindowWithExit@8
Debug/example1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

example1.exe - 3 error(s), 0 warning(s)

If you have glut32.dll and glut.lib in the correct places then the problem might be you are using an old version of glut that doesn’t export these functions.

Take glut 3.7:
http://www.opengl.org/resources/libraries/glut/glut_downloads.html

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.